-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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 #10283
Comments
At low level SPI commands you need to supply the address per byte. Maybe some of the SPI code does not allow to access areas over 16M? |
FWIW - as per the next-to-last line in the error output (above), adding the 'gdb_memory_map disable' to esp32s3-builtin.cfg does at least get the debugger to launch. |
Based purely on code review for "Failed to get flash size!" is here: stub_flasher.c
I have not done any debugging of the OpenOCD process itself, but I did include this line in a simple program:
On a 8MB device, the output is: On a 16MB device, the output is: On the 32MB device the output is: In all 3 cases the 2 LSB value of the chip.device_id = coincidentally(?) map to stub_flash_get_size() case statement which would return the proper memory size, including 0x39 = 32MB. And to add to the coincidental factor, for the failing 32MB device, the 2 MSB chip.device_id = "c2" which happen to match the define: ESP_FLASH_CHIP_MXIC_OCT... So I take a swag and say there's something wrong in the "if (octal mode..." logic or value feeding it. Validation Num 2, again same mfg / device code :
|
Did you open an issue at the openocd-esp32 repo? This project is downstream of their code, so if that function is mis-identifying the flash, they would need to provide the fix. In any case, they can clarify whether the issue is something in openocd or if the usb reset is the real error here. |
Good point! An issue has been raised... |
Board
ESP32-S3-DevKitC-1-N-32R8V
Device Description
ESP32-S3-DevKitC with only USB serial cable attached.
Hardware Configuration
n/a other than onboard RGB used in sketch.
Version
v3.0.4
IDE Name
Arduino IDE 2.3.2
Operating System
Win 11
Flash frequency
80
PSRAM enabled
yes
Upload speed
921600
Description
Debugger fails memory scan and fails to attach.
ESP32-S3-DevKitC-1-N-32R8V, fails
Custom PCB with 32R8V, fails
Tested same simple blink code with Pico-Mini DevKit, Success
Test on ESP32-S3 module with 16MB, Success
Sketch
Any, but using the RMTWriteNeoPixel.ino as a test.
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: