platformio / platform-espressif32

Espressif 32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif32
Apache License 2.0
937 stars 636 forks source link

Add ESP32 SVD files #1196

Open maxgerhardt opened 1 year ago

maxgerhardt commented 1 year ago

Espressif has released them at https://github.com/espressif/svd/releases.

When using a debug probe, the peripheral view should be available for all ESP32 chips.

pwm802 commented 1 year ago

Has there been any activity on this?

TheHexaCube commented 8 months ago

I'm having the same issue - included the .svd file for an ESP32-C3, yet no data is shown under the peripherals tab. Instead I get the error message "Cannot read properties of null (reading 'recordType')"

inF1704 commented 1 month ago

Same issue here. I tried to include the svd file but without success

maxgerhardt commented 1 month ago

The SVD parser of the PlatformIO extension is known to be borked with certain SVDs. Probably other extensions like https://marketplace.visualstudio.com/items?itemName=mcu-debug.peripheral-viewer can handle it though.

https://github.com/platformio/platformio-vscode-ide/issues/1675

inF1704 commented 1 month ago

Any chance it gets fixed?

maxgerhardt commented 1 month ago

Ask the devs, not me- Push the linked issue.

Jason2866 commented 1 month ago

Looks like Platformio stopped every development work regarding espressif stuff

pmendiuk commented 1 month ago

Looks like Platformio stopped every development work regarding espressif stuff

They stopped working on Espressif in general or just the SVD parser?

maxgerhardt commented 1 month ago

Having a fixed SVD parser is also in the interest of other platforms, not just ESP32, so maybe it will get fixed when looking at related SVD parsing bugs.

pmendiuk commented 1 month ago

I don't get the impression that register level debugging is a priority, at least for ESP32 users.

inF1704 commented 1 month ago

I agree with you when using overblown libraries and when the understanding of coding is copy and paste only. But if you need to build a high quality code for performance reqsons, then you build from scratch. For example if you want to interact with an i2C device without using a library you need to debug on register level. Otherwise it is only try and error and because of timings you can't do "debugging" with serial.print

pmendiuk commented 1 month ago

@maxgerhardt Do you have any idea if this will ever get fixed/implemented?

inF1704 commented 1 month ago

Don't know what happened but I managed to establish a debug connection to an esp32s3 with internal JTAG usb debugger and parser running.

IMG-20241004-WA0017 IMG-20241004-WA0020