diff options
Diffstat (limited to 'lib/chibios-contrib/demos/HT32/HT32F165x_USB_DFU/openocd/openocd_ht32f165x.cfg')
-rw-r--r-- | lib/chibios-contrib/demos/HT32/HT32F165x_USB_DFU/openocd/openocd_ht32f165x.cfg | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/chibios-contrib/demos/HT32/HT32F165x_USB_DFU/openocd/openocd_ht32f165x.cfg b/lib/chibios-contrib/demos/HT32/HT32F165x_USB_DFU/openocd/openocd_ht32f165x.cfg new file mode 100644 index 000000000..97aa70765 --- /dev/null +++ b/lib/chibios-contrib/demos/HT32/HT32F165x_USB_DFU/openocd/openocd_ht32f165x.cfg | |||
@@ -0,0 +1,20 @@ | |||
1 | adapter driver jlink | ||
2 | |||
3 | transport select swd | ||
4 | |||
5 | set WORKAREASIZE 0x400 | ||
6 | set HT32_SRAM_SIZE 8192 | ||
7 | set HT32_FLASH_SIZE 65536 | ||
8 | |||
9 | source [find target/ht32f165x.cfg] | ||
10 | |||
11 | adapter speed 5000 | ||
12 | |||
13 | proc program {file} { | ||
14 | init | ||
15 | reset halt | ||
16 | flash write_image erase $file 0x00000000 | ||
17 | reset run | ||
18 | |||
19 | echo "\n PROGRAM COMPLETE!!!" | ||
20 | } | ||