33 lines
No EOL
1.2 KiB
JSON
33 lines
No EOL
1.2 KiB
JSON
{
|
|
/*
|
|
* Requires the Rust Language Server (rust-analyzer) and Cortex-Debug extensions
|
|
* https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer
|
|
* https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug
|
|
*/
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
/* Configuration for the STM32F446 Discovery board */
|
|
"type": "cortex-debug",
|
|
"request": "launch",
|
|
"name": "Debug (OpenOCD)",
|
|
"servertype": "openocd",
|
|
"cwd": "${workspaceRoot}",
|
|
"preLaunchTask": "Cargo Build (debug)",
|
|
"runToEntryPoint": "main",
|
|
"executable": "./target/thumbv7m-none-eabi/debug/pwm_input",
|
|
/* Run `cargo build --example itm` and uncomment this line to run itm example */
|
|
// "executable": "./target/thumbv7em-none-eabihf/debug/examples/itm",
|
|
"device": "STM32F103TB",
|
|
"configFiles": [
|
|
"interface/stlink.cfg",
|
|
"target/stm32f1x.cfg"
|
|
],
|
|
"postLaunchCommands": [
|
|
"monitor arm semihosting enable"
|
|
],
|
|
"postRestartCommands": [],
|
|
"postResetCommands": [],
|
|
}
|
|
]
|
|
} |