-
To be able to view periph regs while debugging, you need to copy esp32c3.svd to PLATFORM_ROOT/misc/svd directory
-
Platformio's openocd-esp32 compiled without builtin JTAG support. You need to get openocd-esp32 there and unpack it to the project folder root https://github.com/espressif/openocd-esp32/releases
-
If you are getting x509_crt_bundle error during compilation, edit ~/.platformio/packages/framework-espidf/components/mbedtls/esp_crt_bundle/cacrt_all.pem and remove the EC-ACC certificate or apply any other fix from espressif/esp-idf#5322
-
To run ESP-IDF's menuconfig type this in platformio terminal: pio run -t menuconfig
-
If ESP-IDF's menuconfig is not working on linux: sudo apt install libncurses5-dev flex bison
-
Disable memory protection in menuconfig: toggle Component config → ESP System Settings → Memory protection → Enable memory protection (also you can compile latest openocd-esp32 that works with memory protection set)
-
Enable ocd stubs in menuconfig: toggle Component config → ESP32C3-Specific → OpenOCD debugStubs
-
If platformio debugger is not working on linux: sudo apt install libpython2.7
-
IMPORTANT: Do not forget to use good quiality USB cable without hub or use external power supply, because it may trigger BROWNOUT(and some others) event on startup and you'll spend a lot of time finding the reason.
-
On linux you need to install udev rules from openocd-esp32 folder: sudo cp openocd-esp32/share/openocd/contrib/60-openocd.rules /etc/udev/rules.d/60-openocd.rules
-
Pinout for builtin USB JTAG/serial: io18 - D-, io19 - D+, link to board description: https://docs.ai-thinker.com/en/esp32c3
forked from ad7718/esp32-c3_pio_builtin_jtag_debugging
-
Notifications
You must be signed in to change notification settings - Fork 0
ASRSim13/esp32-c3_pio_builtin_jtag_debugging
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
debug esp32-c3 Ai-thinker board in platformio
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C 64.1%
- CMake 35.9%