(optica) added JLink script to program bootloader
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
# Change Bootloader
|
||||||
|
|
||||||
|
When using a `JLink` you can use the `./commands.jlink` script to program the bootloader binary.
|
||||||
|
Use the following command:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
JLinkExe -NoGui 1 -ExitOnError 1 -CommandFile commands.jlink
|
||||||
|
```
|
||||||
|
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
device APM32F103CB
|
||||||
|
selectinterface SWD
|
||||||
|
speed 4000
|
||||||
|
|
||||||
|
reset
|
||||||
|
halt
|
||||||
|
|
||||||
|
loadfile ./bootloader_only_binaries/generic-none_bootloader.bin, 0x08000000
|
||||||
|
|
||||||
|
exit
|
||||||
Reference in New Issue
Block a user