diff --git a/boards/bluepill_f103c8.json b/boards/bluepill_f103c8.json index b3feff3..924112a 100644 --- a/boards/bluepill_f103c8.json +++ b/boards/bluepill_f103c8.json @@ -19,6 +19,27 @@ }, "debug": { "tools": { + "stlink": { + "server": { + "package": "tool-openocd", + "executable": "bin/openocd", + "arguments": [ + "-s", "share/openocd/scripts", + "-f", "interface/stlink-v2-1.cfg", + "-c", "transport select hla_swd", + "-f", "target/stm32f1x.cfg", + "-c", "reset_config srst_only" + ] + }, + "gdbinit": [ + "target remote :3333", + "monitor init", + "monitor reset halt", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + }, "bmp": { "hwids": [ [ diff --git a/boards/genericSTM32F103C8.json b/boards/genericSTM32F103C8.json index 93d7c86..14d1c2f 100644 --- a/boards/genericSTM32F103C8.json +++ b/boards/genericSTM32F103C8.json @@ -23,6 +23,49 @@ "use_1200bps_touch": false, "wait_for_upload_port": false }, + "debug": { + "tools": { + "stlink": { + "server": { + "package": "tool-openocd", + "executable": "bin/openocd", + "arguments": [ + "-s", "share/openocd/scripts", + "-f", "interface/stlink-v2-1.cfg", + "-c", "transport select hla_swd", + "-f", "target/stm32f1x.cfg", + "-c", "reset_config srst_only" + ] + }, + "gdbinit": [ + "target remote :3333", + "monitor init", + "monitor reset halt", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + }, + "bmp": { + "hwids": [ + [ + "0x1d50", + "0x6018" + ] + ], + "require_debug_port": true, + "gdbinit": [ + "target extended-remote $DEBUG_PORT", + "monitor swdp_scan", + "attach 1", + "set mem inaccessible-by-default off", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + } + } + }, "url": "http://www.st.com/content/st_com/en/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32f1-series/stm32f103/stm32f103c8.html", "vendor": "Generic" } \ No newline at end of file diff --git a/boards/genericSTM32F103CB.json b/boards/genericSTM32F103CB.json index 7132a0b..321c60f 100644 --- a/boards/genericSTM32F103CB.json +++ b/boards/genericSTM32F103CB.json @@ -23,6 +23,49 @@ "use_1200bps_touch": false, "wait_for_upload_port": false }, + "debug": { + "tools": { + "stlink": { + "server": { + "package": "tool-openocd", + "executable": "bin/openocd", + "arguments": [ + "-s", "share/openocd/scripts", + "-f", "interface/stlink-v2-1.cfg", + "-c", "transport select hla_swd", + "-f", "target/stm32f1x.cfg", + "-c", "reset_config srst_only" + ] + }, + "gdbinit": [ + "target remote :3333", + "monitor init", + "monitor reset halt", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + }, + "bmp": { + "hwids": [ + [ + "0x1d50", + "0x6018" + ] + ], + "require_debug_port": true, + "gdbinit": [ + "target extended-remote $DEBUG_PORT", + "monitor swdp_scan", + "attach 1", + "set mem inaccessible-by-default off", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + } + } + }, "url": "http://www.st.com/content/st_com/en/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32f1-series/stm32f103/stm32f103cb.html", "vendor": "Generic" } \ No newline at end of file diff --git a/boards/genericSTM32F103R8.json b/boards/genericSTM32F103R8.json index 878c478..8e87dc2 100644 --- a/boards/genericSTM32F103R8.json +++ b/boards/genericSTM32F103R8.json @@ -23,6 +23,49 @@ "use_1200bps_touch": false, "wait_for_upload_port": false }, + "debug": { + "tools": { + "stlink": { + "server": { + "package": "tool-openocd", + "executable": "bin/openocd", + "arguments": [ + "-s", "share/openocd/scripts", + "-f", "interface/stlink-v2-1.cfg", + "-c", "transport select hla_swd", + "-f", "target/stm32f1x.cfg", + "-c", "reset_config srst_only" + ] + }, + "gdbinit": [ + "target remote :3333", + "monitor init", + "monitor reset halt", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + }, + "bmp": { + "hwids": [ + [ + "0x1d50", + "0x6018" + ] + ], + "require_debug_port": true, + "gdbinit": [ + "target extended-remote $DEBUG_PORT", + "monitor swdp_scan", + "attach 1", + "set mem inaccessible-by-default off", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + } + } + }, "url": "http://www.st.com/content/st_com/en/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32f1-series/stm32f103/stm32f103r8.html", "vendor": "Generic" } \ No newline at end of file diff --git a/boards/genericSTM32F103RB.json b/boards/genericSTM32F103RB.json index 5d3a3bc..0215635 100644 --- a/boards/genericSTM32F103RB.json +++ b/boards/genericSTM32F103RB.json @@ -23,6 +23,49 @@ "use_1200bps_touch": false, "wait_for_upload_port": false }, + "debug": { + "tools": { + "stlink": { + "server": { + "package": "tool-openocd", + "executable": "bin/openocd", + "arguments": [ + "-s", "share/openocd/scripts", + "-f", "interface/stlink-v2-1.cfg", + "-c", "transport select hla_swd", + "-f", "target/stm32f1x.cfg", + "-c", "reset_config srst_only" + ] + }, + "gdbinit": [ + "target remote :3333", + "monitor init", + "monitor reset halt", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + }, + "bmp": { + "hwids": [ + [ + "0x1d50", + "0x6018" + ] + ], + "require_debug_port": true, + "gdbinit": [ + "target extended-remote $DEBUG_PORT", + "monitor swdp_scan", + "attach 1", + "set mem inaccessible-by-default off", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + } + } + }, "url": "http://www.st.com/content/st_com/en/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32f1-series/stm32f103/stm32f103rb.html", "vendor": "Generic" } \ No newline at end of file diff --git a/boards/genericSTM32F103RC.json b/boards/genericSTM32F103RC.json index ca3d9ca..adc418e 100644 --- a/boards/genericSTM32F103RC.json +++ b/boards/genericSTM32F103RC.json @@ -23,6 +23,49 @@ "use_1200bps_touch": false, "wait_for_upload_port": false }, + "debug": { + "tools": { + "stlink": { + "server": { + "package": "tool-openocd", + "executable": "bin/openocd", + "arguments": [ + "-s", "share/openocd/scripts", + "-f", "interface/stlink-v2-1.cfg", + "-c", "transport select hla_swd", + "-f", "target/stm32f1x.cfg", + "-c", "reset_config srst_only" + ] + }, + "gdbinit": [ + "target remote :3333", + "monitor init", + "monitor reset halt", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + }, + "bmp": { + "hwids": [ + [ + "0x1d50", + "0x6018" + ] + ], + "require_debug_port": true, + "gdbinit": [ + "target extended-remote $DEBUG_PORT", + "monitor swdp_scan", + "attach 1", + "set mem inaccessible-by-default off", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + } + } + }, "url": "http://www.st.com/content/st_com/en/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32f1-series/stm32f103/stm32f103rc.html", "vendor": "Generic" } \ No newline at end of file diff --git a/boards/genericSTM32F103RE.json b/boards/genericSTM32F103RE.json index d8b0cdf..9ebef60 100644 --- a/boards/genericSTM32F103RE.json +++ b/boards/genericSTM32F103RE.json @@ -23,6 +23,49 @@ "use_1200bps_touch": false, "wait_for_upload_port": false }, + "debug": { + "tools": { + "stlink": { + "server": { + "package": "tool-openocd", + "executable": "bin/openocd", + "arguments": [ + "-s", "share/openocd/scripts", + "-f", "interface/stlink-v2-1.cfg", + "-c", "transport select hla_swd", + "-f", "target/stm32f1x.cfg", + "-c", "reset_config srst_only" + ] + }, + "gdbinit": [ + "target remote :3333", + "monitor init", + "monitor reset halt", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + }, + "bmp": { + "hwids": [ + [ + "0x1d50", + "0x6018" + ] + ], + "require_debug_port": true, + "gdbinit": [ + "target extended-remote $DEBUG_PORT", + "monitor swdp_scan", + "attach 1", + "set mem inaccessible-by-default off", + "file $PROG_PATH", + "load $PROG_PATH", + "b main" + ] + } + } + }, "url": "http://www.st.com/content/st_com/en/products/microcontrollers/stm32-32-bit-arm-cortex-mcus/stm32f1-series/stm32f103/stm32f103re.html", "vendor": "Generic" } \ No newline at end of file