From b66f33805a30b11d0d123cdb9b8c775fdb308334 Mon Sep 17 00:00:00 2001 From: Frederick Vollbrecht Date: Thu, 4 Jul 2024 07:53:02 +0200 Subject: [PATCH] update probe-rs launch.json to reflect upstream changes --- src/tooling/debugging/probe-rs.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/tooling/debugging/probe-rs.md b/src/tooling/debugging/probe-rs.md index e712479..d2478ec 100644 --- a/src/tooling/debugging/probe-rs.md +++ b/src/tooling/debugging/probe-rs.md @@ -56,18 +56,22 @@ There is a `probe-rs` extension in VS Code, see `probe-rs` [VS Code documentatio "name": "Launch", "cwd": "${workspaceFolder}", "chip": "esp32c3", //!MODIFY + // probe field only needed if multiple probes connected. is the MAC address of your esp in case of usb-jtag + "probe": "VID:PID:", //!MODIFY (or remove) | optional field "flashingConfig": { "flashingEnabled": true, - "resetAfterFlashing": true, "haltAfterReset": true, "formatOptions": { - "format": "idf" //!MODIFY (or remove). Valid values are: 'elf'(default), 'idf' + "binaryFormat": "idf" } }, "coreConfigs": [ { "coreIndex": 0, "programBinary": "target/riscv32imc-unknown-none-elf/debug/${workspaceFolderBasename}", //!MODIFY + // svdFiles describe the hardware register names off the esp peripherals, such as the LEDC peripheral. + // They can be downloaded seperatly @ https://github.com/espressif/svd/tree/main/svd + "svdFile": "${workspaceFolder}/esp32c3.svd" //!MODIFY (or remove) | optional field } ] }, @@ -76,11 +80,13 @@ There is a `probe-rs` extension in VS Code, see `probe-rs` [VS Code documentatio "request": "attach", "name": "Attach", "cwd": "${workspaceFolder}", - "chip": "esp32c3", //!MODIFY + "chip": "esp32c3", //!MODIFY + "probe": "VID:PID:", //!MODIFY (or remove) | optional field "coreConfigs": [ { "coreIndex": 0, "programBinary": "target/riscv32imc-unknown-none-elf/debug/${workspaceFolderBasename}", //!MODIFY + "svdFile": "${workspaceFolder}/esp32c3.svd" //!MODIFY (or remove) | optional field } ] }