diff --git a/zegonix/configs/optica/bootloader-binary/README.md b/zegonix/configs/optica/bootloader-binary/README.md new file mode 100644 index 0000000..85d0a6c --- /dev/null +++ b/zegonix/configs/optica/bootloader-binary/README.md @@ -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 +``` + diff --git a/zegonix/configs/optica/bootloader-binary/commands.jlink b/zegonix/configs/optica/bootloader-binary/commands.jlink new file mode 100644 index 0000000..0e2f230 --- /dev/null +++ b/zegonix/configs/optica/bootloader-binary/commands.jlink @@ -0,0 +1,10 @@ +device APM32F103CB +selectinterface SWD +speed 4000 + +reset +halt + +loadfile ./bootloader_only_binaries/generic-none_bootloader.bin, 0x08000000 + +exit