likeablob / ulptool-pio

A thin wrapper of ulptool for PlatformIO
6 stars 6 forks source link

Error Using ESP32-S3 #7

Open AB-informatica-service opened 8 months ago

AB-informatica-service commented 8 months ago

Hi,

I'm working with ESP32-S3 and a load your library in my project Platformio with framework Arduino.

When I buil the project I got some errors, exactly:

`Creating esp32s3 image... Merged 1 ELF section Successfully created esp32s3 image. Compiling .pio\build\esp32-S3\lib341\OneWire\OneWire.cpp.o Compiling .pio\build\esp32-S3\lib094\DallasTemperature\DallasTemperature.cpp.o Compiling .pio\build\esp32-S3\libb4f\EByte LoRa E220 library\LoRa_E220.cpp.o Compiling .pio\build\esp32-S3\libd6f\Adafruit Unified Sensor\Adafruit_Sensor.cpp.o src/CommunicationAbiot.cpp: In member function 'int CommunicationAbiot::getStatusModem()': src/CommunicationAbiot.cpp:35:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ src/ReadingSensor.cpp: In function 'int getDataTensiometro(int)': src/ReadingSensor.cpp:169:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ .pio/libdeps/esp32-s3/OneWire/OneWire.cpp:599:22: warning: extra tokens at end of #undef directive

undef noInterrupts() {portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED;portENTER_CRITICAL(&mux)

                  ^

.pio/libdeps/esp32-s3/OneWire/OneWire.cpp:600:20: warning: extra tokens at end of #undef directive

undef interrupts() portEXIT_CRITICAL(&mux);}

                ^

In file included from src/main.cpp:17: .pio/libdeps/esp32-s3/ulptool-pio/src/include/ulptool/ulptool.h: In function 'esp_err_t ulptool_load_binary(uint32_t, const uint8_t*, size_t)': .pio/libdeps/esp32-s3/ulptool-pio/src/include/ulptool/ulptool.h:29:25: error: 'CONFIG_ULP_COPROC_RESERVE_MEM' was not declared in this scope if (load_addr_bytes > CONFIG_ULP_COPROC_RESERVE_MEM) { ^~~~~~~~~ .pio/libdeps/esp32-s3/ulptool-pio/src/include/ulptool/ulptool.h:29:25: note: suggested alternative: 'CONFIG_ESP32S3_ULP_COPROC_RESERVE_MEM' if (load_addr_bytes > CONFIG_ULP_COPROC_RESERVE_MEM) { ^~~~~~~~~ CONFIG_ESP32S3_ULP_COPROC_RESERVE_MEM .pio/libdeps/esp32-s3/ulptool-pio/src/include/ulptool/ulptool.h:33:46: error: 'CONFIG_ULP_COPROC_RESERVE_MEM' was not declared in this scope if (load_addr_bytes + program_size_bytes > CONFIG_ULP_COPROC_RESERVE_MEM) { ^~~~~~~~~ .pio/libdeps/esp32-s3/ulptool-pio/src/include/ulptool/ulptool.h:33:46: note: suggested alternative: 'CONFIG_ESP32S3_ULP_COPROC_RESERVE_MEM' if (load_addr_bytes + program_size_bytes > CONFIG_ULP_COPROC_RESERVE_MEM) { ^~~~~~~~~ CONFIG_ESP32S3_ULP_COPROC_RESERVE_MEM In file included from C:/Users/fabio/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal.h:80, from C:/Users/fabio/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:36, from src/config.h:1, from src/main.cpp:1: .pio/libdeps/esp32-s3/ulptool-pio/src/include/ulptool/ulptool.h:48:12: error: 'TAG' was not declared in this scope ESP_LOGD(TAG, "program_size_bytes: %d total_size: %d offset: %d .text: %d, .data: %d, .bss: %d", ^~~ C:/Users/fabio/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-log.h:111:72: note: in definition of macro 'log_d'

define log_d(format, ...) log_printf(ARDUHAL_LOG_FORMAT(D, format), ##__VA_ARGS__)

                                                                    ^~~~~~~~~~~

.pio/libdeps/esp32-s3/ulptool-pio/src/include/ulptool/ulptool.h:48:3: note: in expansion of macro 'ESP_LOGD' ESP_LOGD(TAG, "program_size_bytes: %d total_size: %d offset: %d .text: %d, .data: %d, .bss: %d", ^~~~ Compiling .pio\build\esp32-S3\libdea\DHT sensor library\DHT.cpp.o Compiling .pio\build\esp32-S3\libdea\DHT sensor library\DHT_U.cpp.o Compiling .pio\build\esp32-S3\lib6f8\EspSoftwareSerial\SoftwareSerial.cpp.o Compiling .pio\build\esp32-S3\FrameworkArduino\Esp.cpp.o Compiling .pio\build\esp32-S3\FrameworkArduino\FirmwareMSC.cpp.o *** [.pio\build\esp32-S3\src\main.cpp.o] Error 1 ==================================================================================================================== [FAILED] Took 6.97 seconds ====================================================================================================================

Should I declare variables in main.cpp? And if yes, which types?