Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ESP32 JTAG debugging with VSCode

Tags:

jtag

esp32

recently I have bougth a ESP32 devkit and a low budget FT4232H jtag adapter which I managed to setup in VSCode using the Espressif-idf plugin.

Basically it seems to work so far. I can build, flash and monitor the ESP32 from VSCode. Also also managed to setup the debug configuration, but I am still missing some features in while debugging.

I can step through the code, watch variables and see the call stack.

enter image description here

But I can't see periphals, registers or memory

enter image description here

I guess I have to set some more options in GDB, OpenOCd or even ESP32 config but I don't know which ones.

Any ideas were i have to dig?

like image 908
S.G Avatar asked Sep 17 '26 04:09

S.G


1 Answers

You appear to be almost there.

I have a very similar interface with the memory loading afterwards but only after stepping into certain operations.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/jtag-debugging/debugging-examples.html

Following this document produced by espressif. Memory can be accessed and stepped into using the keyboard shortcut (x) when using openOCD.

Give that a try.

like image 174
Alex Tuddenham Avatar answered Sep 21 '26 01:09

Alex Tuddenham



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!