Crashing issues

Documentation https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/fatal-errors.html Settings you can utilise Panic handler behaviour (CONFIG_ESP_SYSTEM_PANIC configuration) What happens when a fatal issue occurs and what is output can be changed, including having the CPU halt if you wish: menuconfig > Component config > ESP System Settings > Panic handler behaviour

Read More

.Debugging

Fatal errors of the ESP32 https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/fatal-errors.html Stopping the ESP32 resetting immediately when it has a segmentation fault etc In menuconfig (setting gear icon in bottom blue bar) set “Panic handler behaviour” to “Print registers and halt” Breakpointing on panic If CONFIG_ESP_DEBUG_OCDAWARE is enabled (default=enabled), the panic handler will detect whether a JTAG debugger is connected […]

Read More

esp-idf debug

Outputting a full log via the serial port when debugging can sometimes be really helpful, because it contains all sorts of state information. idf.py menuconfig In the VS Code “TERMINAL” window, enter: idf.py menuconfig(You may need to use CTRL + ] to end its current mode and get its command prompt first) This will bring […]

Read More