Hi,
I have a zip library that works perfectly in Arduino IDE, same in platformio tool with arduino firmware, but when i try to use it with idf espressif firmware in platformio, the compiler doesn’t recognize stuff like Arduino.h, WProgram.h, HardwareSerial…etc, I am trying to find a solution to my problem but in vain, it’s been more than 20 days none of the proposed solutions have worked for me, I have tried :
to include the library with a tree format ;
to modifiy platformio.ini with
platform_packages =
but in vain;
to change cmakelist compiler path;
to change sdkconfig.h configuration.
none of this solution worked for me.
This is my last chance to get it work! if you have any idea i would be greatful.
Here is the library link : Servo
Actually, it works now, but if i want to use it with void app_main(), so i can use freertos/semafore and other idf epsressif specific syntax, I got this error!
appearently, i can’t use read Arduino library while using idf espressif firmware!!
here is the error:
Processing esp32doit-devkit-v1 (platform: espressif32; framework: arduino; board: esp32doit-devkit-v1)
------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 (3.3.1) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)PACKAGES:
- framework-arduinoespressif32 3.10006.210326 (1.0.6)
- tool-esptoolpy 1.30100.210531 (3.1.0)
- toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 29 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <SCServo-master> 0.0.0+20210817123422
Building in release mode
Compiling .pio\build\esp32doit-devkit-v1\src\Blink.cpp.o
Generating partitions .pio\build\esp32doit-devkit-v1\partitions.bin
Compiling .pio\build\esp32doit-devkit-v1\libfb7\SCServo-master\SCS.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libfb7\SCServo-master\SCSCL.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libfb7\SCServo-master\SCSerail.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libfb7\SCServo-master\SMSBL.cpp.o
src\Blink.cpp: In function 'void app_main()':
src\Blink.cpp:67:56: error: invalid conversion from 'int' to 'gpio_num_t' [-fpermissive]
gpio_set_direction(CONFIG_BUTTON_PIN, GPIO_MODE_INPUT);
^
In file included from src\Blink.cpp:8:0:
C:\Users\HADOUNE\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\driver/driver/gpio.h:346:11: note: initializing argument 1 of 'esp_err_t gpio_set_direction(gpio_num_t, gpio_mode_t)'
esp_err_t gpio_set_direction(gpio_num_t gpio_num, gpio_mode_t mode);
^
src\Blink.cpp:68:56: error: invalid conversion from 'int' to 'gpio_num_t' [-fpermissive]
gpio_set_direction(CONFIG_LED_PIN, GPIO_MODE_OUTPUT);
^
In file included from src\Blink.cpp:8:0:
C:\Users\HADOUNE\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\driver/driver/gpio.h:346:11: note: initializing argument 1 of 'esp_err_t gpio_set_direction(gpio_num_t, gpio_mode_t)'
esp_err_t gpio_set_direction(gpio_num_t gpio_num, gpio_mode_t mode);
^
src\Blink.cpp:71:58: error: invalid conversion from 'int' to 'gpio_num_t' [-fpermissive]
gpio_set_intr_type(CONFIG_BUTTON_PIN, GPIO_INTR_NEGEDGE);
^
In file included from src\Blink.cpp:8:0:
C:\Users\HADOUNE\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\driver/driver/gpio.h:274:11: note: initializing argument 1 of 'esp_err_t gpio_set_intr_type(gpio_num_t, gpio_int_type_t)'
esp_err_t gpio_set_intr_type(gpio_num_t gpio_num, gpio_int_type_t intr_type);
^
src\Blink.cpp:79:67: error: invalid conversion from 'int' to 'gpio_num_t' [-fpermissive]
gpio_isr_handler_add(CONFIG_BUTTON_PIN, button_isr_handler, NULL);
^
In file included from src\Blink.cpp:8:0:
C:\Users\HADOUNE\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\driver/driver/gpio.h:503:11: note: initializing argument 1 of 'esp_err_t gpio_isr_handler_add(gpio_num_t, gpio_isr_t, void*)'
esp_err_t gpio_isr_handler_add(gpio_num_t gpio_num, gpio_isr_t isr_handler, void* args);
^
*** [.pio\build\esp32doit-devkit-v1\src\Blink.cpp.o] Error 1
============================ [FAILED] Took 3.43 seconds ============================The terminal process "C:\Users\HADOUNE\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
Actually, this is the first time i want to use Idf espressif firmware! i’am used to use arduino firmware, what do i have to do with gpio_num_t? or where do i have to put it ?
src\Blink.cpp: In function 'void app_main()':
src\Blink.cpp:28:25: error: expected ')' before 'CONFIG_LED_PIN_GPIO'
#define LED_PIN_GPIO (2)CONFIG_LED_PIN_GPIO
^
src\Blink.cpp:73:22: note: in expansion of macro 'LED_PIN_GPIO'
gpio_set_direction(LED_PIN_GPIO, GPIO_MODE_INPUT);
^
src\Blink.cpp:73:51: error: invalid conversion from 'int' to 'gpio_num_t' [-fpermissive]
gpio_set_direction(LED_PIN_GPIO, GPIO_MODE_INPUT);
^
In file included from src\Blink.cpp:8:0:
C:\Users\HADOUNE\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\driver/driver/gpio.h:346:11: note: initializing argument 1 of 'esp_err_t gpio_set_direction(gpio_num_t, gpio_mode_t)'
esp_err_t gpio_set_direction(gpio_num_t gpio_num, gpio_mode_t mode);
^
src\Blink.cpp:29:28: error: expected ')' before 'CONFIG_BUTTON_PIN_GPIO'
#define BUTTON_PIN_GPIO (0)CONFIG_BUTTON_PIN_GPIO
^
src\Blink.cpp:74:24: note: in expansion of macro 'BUTTON_PIN_GPIO'
gpio_set_direction(BUTTON_PIN_GPIO, GPIO_MODE_OUTPUT);
^
src\Blink.cpp:74:57: error: invalid conversion from 'int' to 'gpio_num_t' [-fpermissive]
gpio_set_direction(BUTTON_PIN_GPIO, GPIO_MODE_OUTPUT);
^
In file included from src\Blink.cpp:8:0:
C:\Users\HADOUNE\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\driver/driver/gpio.h:346:11: note: initializing argument 1 of 'esp_err_t gpio_set_direction(gpio_num_t, gpio_mode_t)'
esp_err_t gpio_set_direction(gpio_num_t gpio_num, gpio_mode_t mode);
^
src\Blink.cpp:29:28: error: expected ')' before 'CONFIG_BUTTON_PIN_GPIO'
#define BUTTON_PIN_GPIO (0)CONFIG_BUTTON_PIN_GPIO
^
src\Blink.cpp:77:22: note: in expansion of macro 'BUTTON_PIN_GPIO'
gpio_set_intr_type(BUTTON_PIN_GPIO, GPIO_INTR_NEGEDGE);
^
src\Blink.cpp:77:56: error: invalid conversion from 'int' to 'gpio_num_t' [-fpermissive]
gpio_set_intr_type(BUTTON_PIN_GPIO, GPIO_INTR_NEGEDGE);
^
In file included from src\Blink.cpp:8:0:
C:\Users\HADOUNE\.platformio\packages\framework-arduinoespressif32\tools\sdk\include\driver/driver/gpio.h:274:11: note: initializing argument 1 of 'esp_err_t gpio_set_intr_type(gpio_num_t, gpio_int_type_t)'
esp_err_t gpio_set_intr_type(gpio_num_t gpio_num, gpio_int_type_t intr_type);
^
src\Blink.cpp:85:24: error: 'CONFIG_BUTTON_PIN' was not declared in this scope
gpio_isr_handler_add(CONFIG_BUTTON_PIN, button_isr_handler, NULL);
^
*** [.pio\build\esp32doit-devkit-v1\src\Blink.cpp.o] Error 1
============================ [FAILED] Took 3.39 seconds ============================The terminal process "C:\Users\HADOUNE\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.
i couldn’t figure out what gpio_num_t is for? I’ve searched in different sites but there is not much information about this error!
That’s not valid C++ code, you’re attempting to cast CONFIG_PIN_GPIO to the type “2”, which is not a type. As previously said, the type casts to gpio_num_t are missing, so it goes from
If you put multiple options in build_flags as new lines, each line must be indented at least two spaces from the left. Just as it says in the documentation.
You are programming against framework = arduino, hence the framework needs you to implement setup() and loop(). You are however not implementing that, only app_main() (which also needs a extern "C" declaration in front of it if implemented in a .cpp file, I am pretty sure), as if it were pure ESP-IDF.
You may want to refactor app_main() into setup() and create an empty loop() function if you want to write ESP-IDF code within an Arduino framework context (and use delay() to feed the watchdog), or follow the example
closely with its cmake files and framework = arduino, espidf choice.
here is the error i am getting if i use the file you sent me :
> Executing task in folder espidf-arduino-blink: C:\Users\HADOUNE\.platformio\penv\Scripts\platformio.exe run <
[WinError 3] Le chemin d’accès spécifié est introuvable: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\.cmake\\api\\v1\\reply\\target-__idf_framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd-67c7174e98bbab7e239b.json'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\.cmake\api\v1\reply\target-__idf_framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd-67c7174e98bbab7e239b.json`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\.cmake\\api\\v1\\reply'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\.cmake\api\v1\reply`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\.cmake\\api\\v1'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\.cmake\api\v1`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\.cmake\\api'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\.cmake\api`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\.cmake'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\.cmake`
[WinError 3] Le chemin d’accès spécifié est introuvable: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32\\CMakeFiles\\__idf_framework-arduinoespressif32.dir\\libraries\\BluetoothSerial'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32\CMakeFiles\__idf_framework-arduinoespressif32.dir\libraries\BluetoothSerial`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32\\CMakeFiles\\__idf_framework-arduinoespressif32.dir\\libraries\\BluetoothSerial'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32\CMakeFiles\__idf_framework-arduinoespressif32.dir\libraries\BluetoothSerial`
[WinError 3] Le chemin d’accès spécifié est introuvable: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32\\CMakeFiles\\__idf_framework-arduinoespressif32.dir\\libraries\\WebServer\\src'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32\CMakeFiles\__idf_framework-arduinoespressif32.dir\libraries\WebServer\src`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32\\CMakeFiles\\__idf_framework-arduinoespressif32.dir\\libraries\\WebServer\\src'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32\CMakeFiles\__idf_framework-arduinoespressif32.dir\libraries\WebServer\src`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32\\CMakeFiles\\__idf_framework-arduinoespressif32.dir\\libraries\\WebServer'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32\CMakeFiles\__idf_framework-arduinoespressif32.dir\libraries\WebServer`
[WinError 3] Le chemin d’accès spécifié est introuvable: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32\\CMakeFiles\\__idf_framework-arduinoespressif32.dir\\libraries\\WiFiClientSecure'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32\CMakeFiles\__idf_framework-arduinoespressif32.dir\libraries\WiFiClientSecure`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32\\CMakeFiles\\__idf_framework-arduinoespressif32.dir\\libraries\\WiFiClientSecure'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32\CMakeFiles\__idf_framework-arduinoespressif32.dir\libraries\WiFiClientSecure`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32\\CMakeFiles\\__idf_framework-arduinoespressif32.dir\\libraries'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32\CMakeFiles\__idf_framework-arduinoespressif32.dir\libraries`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32\\CMakeFiles\\__idf_framework-arduinoespressif32.dir'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32\CMakeFiles\__idf_framework-arduinoespressif32.dir`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32\\CMakeFiles'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32\CMakeFiles`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32`
[WinError 3] Le chemin d’accès spécifié est introuvable: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd\\CMakeFiles\\__idf_framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd.dir'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd\CMakeFiles\__idf_framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd.dir`
[WinError 3] Le chemin d’accès spécifié est introuvable: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd\\CMakeFiles\\__idf_framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd.dir'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd\CMakeFiles\__idf_framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd.dir`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd\\CMakeFiles'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd\CMakeFiles`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd`
[WinError 3] Le chemin d’accès spécifié est introuvable: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\libsodium\\CMakeFiles\\__idf_libsodium.dir\\libsodium\\src\\libsodium\\crypto_box\\curve25519xchacha20poly1305'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\libsodium\CMakeFiles\__idf_libsodium.dir\libsodium\src\libsodium\crypto_box\curve25519xchacha20poly1305`
[WinError 3] Le chemin d’accès spécifié est introuvable: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\libsodium\\CMakeFiles\\__idf_libsodium.dir\\libsodium\\src\\libsodium\\crypto_box\\curve25519xsalsa20poly1305'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\libsodium\CMakeFiles\__idf_libsodium.dir\libsodium\src\libsodium\crypto_box\curve25519xsalsa20poly1305`
[WinError 3] Le chemin d’accès spécifié est introuvable: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\libsodium\\CMakeFiles\\__idf_libsodium.dir\\libsodium\\src\\libsodium\\crypto_pwhash\\scryptsalsa208sha256\\nosse'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\libsodium\CMakeFiles\__idf_libsodium.dir\libsodium\src\libsodium\crypto_pwhash\scryptsalsa208sha256\nosse`
[WinError 3] Le chemin d’accès spécifié est introuvable: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\libsodium\\CMakeFiles\\__idf_libsodium.dir\\libsodium\\src\\libsodium\\crypto_pwhash\\scryptsalsa208sha256\\sse'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\libsodium\CMakeFiles\__idf_libsodium.dir\libsodium\src\libsodium\crypto_pwhash\scryptsalsa208sha256\sse`
[WinError 3] Le chemin d’accès spécifié est introuvable: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf\\libsodium\\CMakeFiles\\__idf_libsodium.dir\\libsodium\\src\\libsodium\\crypto_scalarmult\\curve25519\\donna_c64'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf\libsodium\CMakeFiles\__idf_libsodium.dir\libsodium\src\libsodium\crypto_scalarmult\curve25519\donna_c64`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev\\esp-idf'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev\esp-idf`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build\\esp32dev'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build\esp32dev`
[WinError 145] Le répertoire n’est pas vide: 'C:\\Users\\HADOUNE\\Downloads\\Compressed\\platform-espressif32-develop\\platform-espressif32-develop\\examples\\espidf-arduino-blink\\.pio\\build'
Please manually remove the file `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build`
Can not remove temporary directory `C:\Users\HADOUNE\Downloads\Compressed\platform-espressif32-develop\platform-espressif32-develop\examples\espidf-arduino-blink\.pio\build`. Please remove it manually to avoid build issues
Processing esp32dev (board: esp32dev; platform: espressif32; framework: arduino, espidf)
------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.1) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)PACKAGES:
- framework-arduinoespressif32 0.0.0+sha.d011dd7
- framework-espidf 3.40001.200521 (4.0.1)
- tool-cmake 3.16.4
- tool-esptoolpy 1.30100.210531 (3.1.0)
- tool-idf 1.0.1
- tool-mconf 1.4060000.20190628 (406.0.0)
- tool-ninja 1.9.0
- toolchain-esp32ulp 1.22851.191205 (2.28.51)
- toolchain-xtensa32 2.80400.210211 (8.4.0)
WARNING: You are using pip version 21.2.2; however, version 21.2.4 is available.
You should consider upgrading via the 'C:\Users\HADOUNE\.platformio\penv\Scripts\python.exe -m pip install --upgrade pip' command.
Warning! Arduino framework as an ESP-IDF component doesn't handle the `variant` field! The default `esp32` variant will be used.
Reading CMake configuration...
Error: Couldn't find target config target-__idf_framework-arduinoespressif32-src-a8a830ef46fb935b080bfdf62a3092dd-23db4d60c3ed05cd5b68.json
=========================== [FAILED] Took 12.57 seconds ===========================
The terminal process "C:\Users\HADOUNE\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.