From ba5e4214e75b0b1cf5390b4d87f6ecfa37ea4204 Mon Sep 17 00:00:00 2001 From: Narukara Date: Mon, 2 Sep 2024 15:06:46 +0800 Subject: [PATCH] update to b66f338 --- README.md | 2 +- src/tooling/debugging/probe-rs.md | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b2c5ba1..8fed442 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ 这里是 https://github.com/esp-rs/book 的简体中文翻译。[直接在网页中阅读](https://narukara.github.io/rust-on-esp-book-zh-cn/) -目前进度:已经翻译完成(部分更新的内容需要重新翻译),跟踪到 73152c7 +目前进度:已经翻译完成(部分更新的内容需要重新翻译),跟踪到 b66f338 --- diff --git a/src/tooling/debugging/probe-rs.md b/src/tooling/debugging/probe-rs.md index b332620..86568c7 100644 --- a/src/tooling/debugging/probe-rs.md +++ b/src/tooling/debugging/probe-rs.md @@ -56,18 +56,22 @@ VS Code 有 `probe-rs` 扩展。关于如何安装、配置和使用,请参考 "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 @@ VS Code 有 `probe-rs` 扩展。关于如何安装、配置和使用,请参考 "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 } ] }