I recently imported my arduino project into platformio, and now when I try to run it I get this error some 8 times:
C:/Users/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/include/soc/spinlock.h: In function 'void spinlock_initialize(spinlock_t*)':
error: '__assert_func' was not declared in this scope
(the function in which the error ocurrs is different each time but its in the same file, spinlock.h)
Note that I already changed my .ino file into .cpp, the error persists. Please help me!
Which Espressif Arduino version were your Arduino projects developed with and which Espressif32 Platform version have you installed / is used in your project?
Also please show the content of your platformio.ini.
platformio.ini:
[env:MtokEngine]
platform = espressif32
board = esp32dev
framework = arduino
lib_extra_dirs = ~/Documents/Arduino/libraries
Espressif 32 (6.10.0)
Espressif Arduino version is 2.0.18-arduino.5
Please remove this line!
If there are any libraries needed by your project, please include them by lib_deps
.
Example for ESPAsyncWebServer library:
[env:MtokEngine]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
esp32async/ESPAsyncWebServer@^3.7.7