— Available ports:
— Enter port index or full name:
And another problem is, when i power off the microcontroller and restart it, the programm disappered. If i reset the microcontroller with the reset button, the programm also disappers.
I would be very grateful if someone can tell me how to solve these problems. Thanks!
Here my platformio.ini:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
After I change ConsoleOutput to USB CDC , I have compile errors:
....platformio/packages/framework-espidf/components/esp_system/port/soc/esp32s3/usb_console.c:69:1: error: static assertion failed: "usb_osglue_*_int is not multicore capable"
69 | _Static_assert(SOC_CPU_CORES_NUM == 1, "usb_osglue_*_int is not multicore capable");
| ^~~~~~~~~~~~~~
....platformio/packages/framework-espidf/components/esp_system/port/soc/esp32s3/usb_console.c: In function 'esp_usb_console_read_buf':
....platformio/packages/framework-espidf/components/esp_system/port/soc/esp32s3/usb_console.c:337:10: error: implicit declaration of function 'esp_usb_console_read_available'; did you mean 'esp_usb_console_write_available'? [-Werror=implicit-function-declaration]
337 | if (!esp_usb_console_read_available()) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| esp_usb_console_write_available
....platformio/packages/framework-espidf/components/esp_system/port/soc/esp32s3/usb_console.c: At top level:
....platformio/packages/framework-espidf/components/esp_system/port/soc/esp32s3/usb_console.c:365:6: error: conflicting types for 'esp_usb_console_read_available';
have '_Bool(void)'
365 | bool esp_usb_console_read_available(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
....platformio/packages/framework-espidf/components/esp_system/port/soc/esp32s3/usb_console.c:337:10: note: previous implicit declaration of 'esp_usb_console_read_available' with type 'int()'
337 | if (!esp_usb_console_read_available()) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1.exe: some warnings being treated as errors
*** [.pio\build\arduino_nano_esp32\esp_system\port\soc\esp32s3\usb_console.o] Error 1
Actually, above problem was referenced as solved in ESP-IDF v5.1.
PlatformIO uses 5.1.2 by default and should have that fixed.
Are you sure you have a completely updated platform? You may need to just remove C:\Users\<user>\.platformio\platforms\espressif32* and restart VSCode.
Are you sure you have a completely updated platform? You may need to just remove C:\Users\<user>\.platformio\platforms\espressif32* and restart VSCode.
Can you additionally check whether this TinyUSB example works? It doesn’t use the USB JTAG controller but the USB OTG controller. Also, ESP_LOGI etc. should work natively with this, not sure with the USB JTAG controller.