diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f0d9ee..de04c0b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,4 +11,6 @@ jobs: with: builder_image: 'bitcraze/builder' build_script: './tools/build/build-update-binary' - artifacts: '_build/sd130_bootloader.bin' \ No newline at end of file + artifacts: | + _build/sd130_bootloader.bin + _build/bootloader_only_for_swd.bin \ No newline at end of file diff --git a/tools/generate_update_binary.py b/tools/generate_update_binary.py old mode 100644 new mode 100755 index 194c3e7..d75a7d4 --- a/tools/generate_update_binary.py +++ b/tools/generate_update_binary.py @@ -5,8 +5,9 @@ from os import system system("arm-none-eabi-objcopy -I ihex -O binary vendor/nrf5sdk/components/softdevice/s130/hex/s130_nrf51_2.0.1_softdevice.hex _build/s130.bin") +system("mv _build/nrf51422_xxaa.bin _build/bootloader_only_for_swd.bin") -bl = open('_build/nrf51422_xxaa.bin', 'rb').read() +bl = open('_build/bootloader_only_for_swd.bin', 'rb').read() sd = open('_build/s130.bin', 'rb').read() # Strip the 4K MBR from the begining of the softdevice