-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32S3-WROOM-2-32R8 and Arduino IDE Debugger (OCD-996) #334
Comments
We did a fix regarding ESP32-S3 flash read failure in the latest OpenOCD release. Please try with https://github.com/espressif/openocd-esp32/releases/tag/v0.12.0-esp32-20240821 |
Same - but a little different...
|
Can you add additional command to the end of OpenOCD start script?
You should see a logs something like;
|
As per your request:
|
Thanks. Error is In the meantime you can skip flash support by adding |
Thank you for looking into it. With regards to it being |
One more thing; Can you enable PSRAM support from the menuconfig and try again? |
I have PSRAM enabled as required for my app. But I believe the simple memory/debug tests I was performing against the various ESP modules was without. |
I found a board and tried. Worked as expected.
Please enable PSRAM in your simple tests as well and share the results. If it works, I’m afraid we will need to revisit that fix. |
This all started with the issue being raised in the Arduino Core project as I'm working within the Arduino IDE and the debugger failure to attach to the 32MB module. But a point was made in that thread to bring it to y'alls attention. Now with regards to the "enable PSRAM" request, it would seem that within the current ver of Arduino Core, selecting MCU ESP32S3-WROOM-2 will set the memory to Octal and enable Octal PSRAM. And If the flash is left on Octal, changing the PSRAM setting to anything other than Octal produces an error when compiling. Additionally, Picking a std ESP32S3 Dev Module will (not surprisingly) produce the same results. Regardless of all that, my project at hand does have PSRAM enabled and the app currently utilizes ~30%. So I can say with it on, the attempt to launch OpenOCD fails the same way. |
hola a todos necesito ayuda estoy utilizando Arduino IDE y un ESP32 pero al ejecutar cualquier codigo me da el siguiente error. me pueden ayudar estoy iniciando y me gustaria que dieran por favor que pasos tengo que hacer para solucionarlo. Waiting for gdb server to start...[2024-10-01T01:28:09.857Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions. |
Chatio502, esse mesmo erro aparece para mim também, minha placa é: ESP32-WROOM-DA Module, tentei mudar algumas situações e nada. |
OpenOCD version
Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)
Operating System
Windows 11
Using an IDE ?
Arduino 2.3.2
OpenOCD command line
...local\Arduino15\packages\esp32\tools\openocd-esp32\v0.12.0-esp32-20240318/bin/openocd" -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "c:\Users\...\sketchname" -f "C:/Program Files/Arduino IDE/resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl" -f board/esp32s3-builtin.cfg
ESP-IDF version
v5.x
Problem Description
Launching OpenOCD with ESP32S3-WROOM-2-32R8 fails to identify memory
Debug Logs
Expected behavior
Additional Details in original issue submitted to the Espressif Arduino Core repository
Screenshots
No response
The text was updated successfully, but these errors were encountered: