Hi everyone,
I am posting here because the issue is (also) related to the Arduino framework.
I am using an ESP32-S3-WROOM-1U-N16R18 module with VSC 1.102.3 and platformIO 3.3.4.
I am using the native USB IF of the ESP32s3 (GPIO19 D- & GPIO20 D+).
Buttons EN & Boot work as expected.
One thing that i have noticed is that when i create a new project in platformIO using the ESP IDF everything works fine. The programming is fast with an effective speed of around 1.5MBits/s and code starts executing immediately after the last line below:
...
...
Writing at 0x0013de95... (100 %)
Wrote 210768 bytes (112261 compressed) at 0x00110000 in 1.1 seconds (effective 1556.8 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
--- Terminal on /dev/ttyACM0 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at Redirecting...
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H (LAST LINE)
Turning off the LED
Turning on the LED
Turning off the LED
Turning on the LED
...
...
However, when i create a new project in platformIO using the Arduino framework i get the following behavior:
- Programming works fine
- Code uploaded to the esp chip does not show signs of execution.
Here is the platformIO json file used that defines various parameters of the project. Notice that there are Arduino-specific params in the json file. This is where you could probably help.
JSON file:
{
"build": {
"arduino":{
"ldscript": "esp32s3_out.ld",
"partitions": "default_16MB.csv",
"memory_type": "qio_opi"
},
"core": "esp32",
"extra_flags": [
"-DBOARD_HAS_PSRAM",
"-DARDUINO_ESP32S3_DEV",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_USB_CDC_ON_BOOT=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"psram_type": "opi",
"hwids": [
[
"0x303A",
"0x1001"
]
],
"mcu": "esp32s3",
"variant": "esp32s3"
},
"connectivity": [
"wifi",
"bluetooth"
],
"debug": {
"default_tool": "esp-builtin",
"onboard_tools": [
"esp-builtin"
],
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino",
"espidf"
],
"name": "Espressif ESP32-S3-WROOM-1U-N16R8 (16 MB QD, 8MB PSRAM)",
"upload": {
"flash_size": "16MB",
"maximum_ram_size": 327680,
"maximum_size": 16777216,
"require_upload_port": true,
"speed": 921600
},
"url": "https://www.espressif.com/sites/default/files/documentation/esp32-s3-wroom-1_wroom-1u_datasheet_en.pdf",
"vendor": "Espressif"
}
- Could the compiler arguments be the culprit?
- Should i add any other Arduino-specific compiler arguments?
I understand that this issue is more platformIO-oriented than Arduino IDE but i had to ask.
Regards
Manos