ESP32 - DEBUGGING your ESP-IDF code using JTAG [VS CODE]
Yuri R Yuri R
7.92K subscribers
98,250 views
0

 Published On Oct 25, 2021

How to DEBUG your ESP32 IDF application inside Visual Studio Code using an external debugger tool. We'll be using the ESP-PROG, a JTAG hardware debugger from Espressif.

Debugging is an essential skill for any serious firmware developer. It allows us to find problems and have an insight of what's happening in our code.

▶ DEBUGGER LINKS (Affiliate):

✔ Amazon (Faster shipping)

ESP-PROG (Recommended): https://amzn.to/3ENsSDy
FT2232H Generic : https://amzn.to/3B1Bxjp
FT2232H Generic Dual Channel: https://amzn.to/3C0NG9G

✔ AliExpress (From China - Cheaper but slower shipping)

ESP-PROG (Recommended): https://s.click.aliexpress.com/e/_A9n4lJ
FT2232H Generic: https://s.click.aliexpress.com/e/_Ap4yQt
FT2232H Generic Dual Channel: https://s.click.aliexpress.com/e/_9ycDvF

▶ My previous video from the ESP32 Series:
   • ESP32 - Getting Started with ESP-IDF ...  

▶ Watch the Quick Fix for IDF Terminal from the previous video:
   • QUICK FIX for IDF Terminal inside VS ...  

▶ ESPRESSIF ESP-PROG Documentation:
https://docs.espressif.com/projects/e...

▶ ESPRESSIF JTAG Documentation:
https://docs.espressif.com/projects/e...

- All emojis designed by OpenMoji – the open-source emoji and icon project.
License: CC BY-SA 4.0

00:00 Introduction
00:54 Serial Terminal
02:01 External Debugger
02:40 Cool things to do
03:28 Next steps
03:40 Which debugger to buy
04:29 ESP-PROG Intro
05:51 ESP-PROG Connection
06:38 Updating the JTAG Driver
07:43 OpenOCD Setup
09:10 GDB Setup
11:21 Quick Debugger test
12:07 Automating OpenOCD
12:54 Solving reliability issues (IMPORTANT)
14:13 Firmware loading through the Debugger
14:37 ESP32's Memory Structure
15:12 Configuring memory addresses on GDB
16:28 Using the debugger (Example)
18:24 Bug explanation
19:15 Conclusion

show more

Share/Embed