aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f1
diff options
context:
space:
mode:
authorBruno Bousquet <[email protected]>2024-05-29 00:37:50 -0400
committerBruno Bousquet <[email protected]>2024-05-29 00:37:50 -0400
commit69badfb845c0fb43b4e4c1c2e9f74a535fcd317a (patch)
tree567327ee8e139f8004d914e47328e3495c70c6f7 /examples/stm32f1
parent50039b17a78bbefeca1a3dd6b689ea478079ea6b (diff)
remove dev files
Diffstat (limited to 'examples/stm32f1')
-rw-r--r--examples/stm32f1/.vscode/launch.json33
-rw-r--r--examples/stm32f1/.vscode/tasks.json21
-rw-r--r--examples/stm32f1/openocd.cfg5
-rw-r--r--examples/stm32f1/openocd.gdb40
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
3source [find interface/stlink.cfg]
4
5source [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 @@
1target extended-remote :3333
2
3# print demangled symbols
4set print asm-demangle on
5
6# set backtrace limit to not have infinite backtrace loops
7set backtrace limit 32
8
9# detect unhandled exceptions, hard faults and panics
10break DefaultHandler
11break HardFault
12break 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)
20break main
21
22monitor 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
37load
38
39# start the process but immediately halt the processor
40stepi