Last active
April 12, 2020 10:53
-
-
Save elfmimi/f6fca5a71eab7c8108f2fc8f1be48ba3 to your computer and use it in GitHub Desktop.
VisualStudio Code settings for Rust-Embedded development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// IntelliSense を使用して利用可能な属性を学べます。 | |
// 既存の属性の説明をホバーして表示します。 | |
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug", | |
"type": "gnu-debugger", | |
"request": "launch", | |
"program": "${workspaceRoot}/target/riscv32imac-unknown-none-elf/debug/rust-blinky", | |
"server": "C:/Users/applause/GitHub/riscv-openocd/bin/openocd.exe", | |
"serverArgs": ["-s", "C:/Users/applause/Work/GigaDevice/GD32VF103", "-f", "gd32vf103.cfg"], | |
"client": "C:/Users/applause/.platformio/packages/toolchain-gd32v/bin/riscv-nuclei-elf-gdb.exe", | |
"serverHost": "localhost", | |
"serverPort": 3333, | |
"gdbCommands": [ | |
"-gdb-set target-async on", | |
"-enable-pretty-printing", | |
"-target-select extended-remote localhost:3333", | |
"-file-exec-and-symbols C:/Users/applause/Work/GigaDevice/GD32VF103/rust-blinky/target/riscv32imac-unknown-none-elf/debug/rust-blinky", | |
"-interpreter-exec console \"monitor reset halt\"", | |
"-interpreter-exec console \"monitor echo dowloading...\"", | |
"-target-download", | |
"-interpreter-exec console \"monitor echo done.\"", | |
"-interpreter-exec console \"tb main\"", | |
"-interpreter-exec console \"continue\"", | |
// "monitor reset", | |
], | |
"internalConsoleOptions":"openOnSessionStart", | |
"preLaunchTask": "cargo build", | |
}, | |
{ | |
"name": "Debug(no download)", | |
"type": "gnu-debugger", | |
"request": "launch", | |
"program": "${workspaceRoot}/target/riscv32imac-unknown-none-elf/debug/rust-blinky", | |
"server": "C:/Users/applause/GitHub/riscv-openocd/bin/openocd.exe", | |
"serverArgs": ["-s", "C:/Users/applause/Work/GigaDevice/GD32VF103", "-f", "gd32vf103.cfg"], | |
"client": "C:/Users/applause/.platformio/packages/toolchain-gd32v/bin/riscv-nuclei-elf-gdb.exe", | |
"serverHost": "localhost", | |
"serverPort": 3333, | |
"gdbCommands": [ | |
"-gdb-set target-async on", | |
"-enable-pretty-printing", | |
"-target-select extended-remote localhost:3333", | |
"-file-exec-and-symbols C:/Users/applause/Work/GigaDevice/GD32VF103/rust-blinky/target/riscv32imac-unknown-none-elf/debug/rust-blinky", | |
"-interpreter-exec console \"monitor echo {skip download.}\"", | |
"-interpreter-exec console \"monitor reset halt\"", | |
// "-interpreter-exec console \"monitor reset halt\"", | |
// "-interpreter-exec console \"monitor echo dowloading...\"", | |
// "-target-download", | |
// "-interpreter-exec console \"monitor echo done.\"", | |
// "-interpreter-exec console \"tb main\"", | |
"-interpreter-exec console \"continue\"", | |
], | |
"internalConsoleOptions":"openOnSessionStart", | |
// "preLaunchTask": "cargo build", | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "cargo build", | |
"type": "shell", | |
"command": "cargo build", | |
"problemMatcher": [], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
} | |
}, | |
{ | |
"label": "cargo clean", | |
"type": "shell", | |
"command": "cargo clean", | |
"problemMatcher": [], | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use gnu-debugger plugin with VisualStudio Code.
https://marketplace.visualstudio.com/items?itemName=metalcode-eu.gnu-debugger