Debugging Rust on ESP32-S3
- Brent Lewis
- Jan 21, 2024
- 1 min read
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { // more info at: https://github.com/Marus/cortex-debug/blob/master/package.json "name": "Attach", "type": "cortex-debug", "request": "attach", // launch will fail when attempting to download the app into the target "cwd": "${workspaceRoot}", "executable": "${workspaceRoot}/target/xtensa-esp32s3-espidf/debug/esp-sandbox", //!MODIFY "servertype": "openocd", "interface": "jtag", "toolchainPrefix": "xtensa-esp32s3-espidf", //!MODIFY "openOCDPreConfigLaunchCommands": ["set ESP_RTOS none"], "serverpath": "/home/coder0xff/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/bin/openocd", //!MODIFY "gdbPath": "/home/coder0xff/.espressif/tools//xtensa-esp-elf-gdb/12.1_20221002/xtensa-esp-elf-gdb/bin/xtensa-esp32s3-elf-gdb", //!MODIFY "configFiles": ["/home/coder0xff/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts/board/esp32s3-builtin.cfg"], //!MODIFY "overrideAttachCommands": [ "set remote hardware-watchpoint-limit 2", "mon halt", "flushregs" ], "overrideRestartCommands": ["mon reset halt", "flushregs", "c"], "showDevDebugOutput": "raw" } ] }
Comments