From 8e5ad9ba1dbeeb84c8c6ca915ffce405fdae39af Mon Sep 17 00:00:00 2001 From: zegonix Date: Sun, 20 Jul 2025 10:45:12 +0200 Subject: [PATCH] (optica) added JLink script to program bootloader --- zegonix/configs/optica/bootloader-binary/README.md | 9 +++++++++ .../configs/optica/bootloader-binary/commands.jlink | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 zegonix/configs/optica/bootloader-binary/README.md create mode 100644 zegonix/configs/optica/bootloader-binary/commands.jlink 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