diff options
Diffstat (limited to 'examples/stm32f1')
| -rw-r--r-- | examples/stm32f1/.vscode/launch.json | 33 | ||||
| -rw-r--r-- | examples/stm32f1/.vscode/tasks.json | 21 | ||||
| -rw-r--r-- | examples/stm32f1/openocd.cfg | 5 | ||||
| -rw-r--r-- | examples/stm32f1/openocd.gdb | 40 |
4 files changed, 0 insertions, 99 deletions
diff --git a/examples/stm32f1/.vscode/launch.json b/examples/stm32f1/.vscode/launch.json deleted file mode 100644 index 71f203614..000000000 --- a/examples/stm32f1/.vscode/launch.json +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | { | ||
| 2 | /* | ||
| 3 | * Requires the Rust Language Server (rust-analyzer) and Cortex-Debug extensions | ||
| 4 | * https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer | ||
| 5 | * https://marketplace.visualstudio.com/items?itemName=marus25.cortex-debug | ||
| 6 | */ | ||
| 7 | "version": "0.2.0", | ||
| 8 | "configurations": [ | ||
| 9 | { | ||
| 10 | /* Configuration for the STM32F446 Discovery board */ | ||
| 11 | "type": "cortex-debug", | ||
| 12 | "request": "launch", | ||
| 13 | "name": "Debug (OpenOCD)", | ||
| 14 | "servertype": "openocd", | ||
| 15 | "cwd": "${workspaceRoot}", | ||
| 16 | "preLaunchTask": "Cargo Build (debug)", | ||
| 17 | "runToEntryPoint": "main", | ||
| 18 | "executable": "./target/thumbv7m-none-eabi/debug/pwm_input", | ||
| 19 | /* Run `cargo build --example itm` and uncomment this line to run itm example */ | ||
| 20 | // "executable": "./target/thumbv7em-none-eabihf/debug/examples/itm", | ||
| 21 | "device": "STM32F103T8", | ||
| 22 | "configFiles": [ | ||
| 23 | "interface/stlink.cfg", | ||
| 24 | "target/stm32f1x.cfg" | ||
| 25 | ], | ||
| 26 | "postLaunchCommands": [ | ||
| 27 | "monitor arm semihosting enable" | ||
| 28 | ], | ||
| 29 | "postRestartCommands": [], | ||
| 30 | "postResetCommands": [], | ||
| 31 | } | ||
| 32 | ] | ||
| 33 | } \ No newline at end of file | ||
diff --git a/examples/stm32f1/.vscode/tasks.json b/examples/stm32f1/.vscode/tasks.json deleted file mode 100644 index de7013b12..000000000 --- a/examples/stm32f1/.vscode/tasks.json +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | { | ||
| 2 | "version": "2.0.0", | ||
| 3 | "tasks": [ | ||
| 4 | { | ||
| 5 | "type": "cargo", | ||
| 6 | "command": "build", | ||
| 7 | "problemMatcher": [ | ||
| 8 | "$rustc" | ||
| 9 | ], | ||
| 10 | "args": [ | ||
| 11 | "--bin", | ||
| 12 | "pwm_input" | ||
| 13 | ], | ||
| 14 | "group": { | ||
| 15 | "kind": "build", | ||
| 16 | "isDefault": true | ||
| 17 | }, | ||
| 18 | "label": "Cargo Build (debug)", | ||
| 19 | } | ||
| 20 | ] | ||
| 21 | } \ No newline at end of file | ||
diff --git a/examples/stm32f1/openocd.cfg b/examples/stm32f1/openocd.cfg deleted file mode 100644 index 0325cd651..000000000 --- a/examples/stm32f1/openocd.cfg +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | # Sample OpenOCD configuration for the STM32F3DISCOVERY development board | ||
| 2 | |||
| 3 | source [find interface/stlink.cfg] | ||
| 4 | |||
| 5 | source [find target/stm32f1x.cfg] | ||
diff --git a/examples/stm32f1/openocd.gdb b/examples/stm32f1/openocd.gdb deleted file mode 100644 index 7795319fb..000000000 --- a/examples/stm32f1/openocd.gdb +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | target extended-remote :3333 | ||
| 2 | |||
| 3 | # print demangled symbols | ||
| 4 | set print asm-demangle on | ||
| 5 | |||
| 6 | # set backtrace limit to not have infinite backtrace loops | ||
| 7 | set backtrace limit 32 | ||
| 8 | |||
| 9 | # detect unhandled exceptions, hard faults and panics | ||
| 10 | break DefaultHandler | ||
| 11 | break HardFault | ||
| 12 | break rust_begin_unwind | ||
| 13 | # # run the next few lines so the panic message is printed immediately | ||
| 14 | # # the number needs to be adjusted for your panic handler | ||
| 15 | # commands $bpnum | ||
| 16 | # next 4 | ||
| 17 | # end | ||
| 18 | |||
| 19 | # *try* to stop at the user entry point (it might be gone due to inlining) | ||
| 20 | break main | ||
| 21 | |||
| 22 | monitor arm semihosting enable | ||
| 23 | |||
| 24 | # # send captured ITM to the file itm.fifo | ||
| 25 | # # (the microcontroller SWO pin must be connected to the programmer SWO pin) | ||
| 26 | # # 8000000 must match the core clock frequency | ||
| 27 | # monitor tpiu config internal itm.txt uart off 8000000 | ||
| 28 | |||
| 29 | # # OR: make the microcontroller SWO pin output compatible with UART (8N1) | ||
| 30 | # # 8000000 must match the core clock frequency | ||
| 31 | # # 2000000 is the frequency of the SWO pin | ||
| 32 | # monitor tpiu config external uart off 8000000 2000000 | ||
| 33 | |||
| 34 | # # enable ITM port 0 | ||
| 35 | # monitor itm port 0 on | ||
| 36 | |||
| 37 | load | ||
| 38 | |||
| 39 | # start the process but immediately halt the processor | ||
| 40 | stepi | ||
