November 08, 2024, 01:38:56 AM

ESP32-SBC-FabGl

Started by bobTrex, July 22, 2023, 01:24:24 PM

Previous topic - Next topic

bobTrex

Hi
Just got three of these new boards ;D
Boots up into the invaders demo - great.
Trying to compile other demos and getting errors. Probably something stupid I'm doing  ::)
Many thanks for any help!

Arduino IDE 1.8.19
Your modified FabGL Lib
V2.0.10 ESP 32
Selected ESP32 Dev Module, 4Mb QIO Flash (80MHz), Partition Huge 3MB..
Demo GraphicalUserInterface

Compiler Output Errors
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\CH32V003.cpp: In member function 'void CH32V003::writeI2C(uint8_t, uint8_t*, uint8_t)':
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\CH32V003.cpp:194:90: error: narrowing conversion of '(((int)size) + 1)' from 'int' to 'uint8_t' {aka 'unsigned char'} inside { } [-Werror=narrowing]
  uint8_t spi_send[size+3] = {protocolHeader(MODE_I2C, CMD_I2C_WRITE, DIRECTION_OUT), size+1, address};
                                                                                      ~~~~^~
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\CH32V003.cpp: In member function 'void CH32V003::readI2C(uint8_t, uint8_t*, uint8_t)':
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\CH32V003.cpp:209:88: error: narrowing conversion of '(((int)size) + 1)' from 'int' to 'uint8_t' {aka 'unsigned char'} inside { } [-Werror=narrowing]
  uint8_t spi_send[size+3] = {protocolHeader(MODE_I2C, CMD_I2C_READ, DIRECTION_IN), size+1, address};
                                                                                    ~~~~^~
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\CH32V003.cpp: In member function 'void CH32V003::transferSPI8(uint8_t*, uint8_t*, uint8_t)':
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\CH32V003.cpp:276:94: error: narrowing conversion of '(((int)size) + 1)' from 'int' to 'uint8_t' {aka 'unsigned char'} inside { } [-Werror=narrowing]
  uint8_t spi_send[size+3] = {protocolHeader(MODE_SPI, CMD_SPI_TRANSFER8, DIRECTION_OUT), size+1};
                                                                                          ~~~~^~
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\CH32V003.cpp: In member function 'void CH32V003::transferSPI16(uint16_t*, uint16_t*, uint8_t)':
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\CH32V003.cpp:296:99: error: narrowing conversion of '((((int)size) * 2) + 2)' from 'int' to 'uint8_t' {aka 'unsigned char'} inside { } [-Werror=narrowing]
  uint8_t spi_send[size*2+4] = {protocolHeader(MODE_SPI, CMD_SPI_TRANSFER16, DIRECTION_OUT), size*2+2};
                                                                                             ~~~~~~^~
cc1plus.exe: some warnings being treated as errors
In file included from C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.h:38,
                 from C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.cpp:26:
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\CH32V003.h:100: warning: "MODE_UART" redefined
 #define MODE_UART       0x03
 
In file included from C:\Users\Robert\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\cores\esp32/esp32-hal.h:82,
                 from C:\Users\Robert\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\cores\esp32/Arduino.h:36,
                 from C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src/fabutils.h:51,
                 from C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.h:32,
                 from C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.cpp:26:
C:\Users\Robert\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\cores\esp32/esp32-hal-uart.h:93: note: this is the location of the previous definition
 #define MODE_UART 0x00                   // mode: regular UART mode
 
In file included from C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.cpp:26:
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.h: In constructor 'fabgl::WiiNunchuk::WiiNunchuk()':
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.h:144:7: error: 'fabgl::WiiNunchuk::decrypt' will be initialized after [-Werror=reorder]
  bool decrypt;
       ^~~~~~~
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.h:142:7: error:   'bool fabgl::WiiNunchuk::available' [-Werror=reorder]
  bool available;
       ^~~~~~~~~
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.cpp:30:1: error:   when initialized here [-Werror=reorder]
 WiiNunchuk::WiiNunchuk() :
 ^~~~~~~~~~
In file included from C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.cpp:26:
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.h:142:7: error: 'fabgl::WiiNunchuk::available' will be initialized after [-Werror=reorder]
  bool available;
       ^~~~~~~~~
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.h:136:13: error:   'CH32V003* fabgl::WiiNunchuk::controller' [-Werror=reorder]
  CH32V003 * controller;
             ^~~~~~~~~~
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.cpp:30:1: error:   when initialized here [-Werror=reorder]
 WiiNunchuk::WiiNunchuk() :
 ^~~~~~~~~~
In file included from C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.cpp:26:
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.h:149:16: error: 'fabgl::WiiNunchuk::packetQueue' will be initialized after [-Werror=reorder]
  QueueHandle_t packetQueue;
                ^~~~~~~~~~~
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.h:146:15: error:   'void* fabgl::WiiNunchuk::updateTask' [-Werror=reorder]
  TaskHandle_t updateTask;
               ^~~~~~~~~~
C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master\src\devdrivers\wiiNunchuk.cpp:30:1: error:   when initialized here [-Werror=reorder]
 WiiNunchuk::WiiNunchuk() :
 ^~~~~~~~~~
cc1plus.exe: some warnings being treated as errors
Multiple libraries were found for "fabgl.h"
 Used: C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master
 Not used: C:\Users\Robert\OneDrive\Documents\Arduino\libraries\arduino_341910
Using library FabGL-master at version 1.0.9 in folder: C:\Users\Robert\OneDrive\Documents\Arduino\libraries\FabGL-master
Using library SPI at version 2.0.0 in folder: C:\Users\Robert\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\libraries\SPI
Using library WiFi at version 2.0.0 in folder: C:\Users\Robert\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.10\libraries\WiFi
exit status 1
Error compiling for board ESP32 Dev Module.

LubOlimex

#1
Probably you got both original FabGL and our FabGL fork and some re-defining happens. Try temporarily removing the original library and keep our modification only and see how it goes.

Also is this unmodified files downloaded from our GitHub? Have you modified anything in the code? Any additional include in the code?
Technical support and documentation manager at Olimex

bobTrex

Thanks, yes my bad.  Onedrive was syncing the Libraries directory!!
Changed the sketches folder directory and all is ok.
Thanks for continuing to make great products :) (a 16MB option would be awsome!!).