This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[Secure Bootloader | nRF52840] Application Update

Hello

I'm trying to use the secure bootloader from the SDK Examples. It worked all fine with downloading and the example package.

But if I try to make my own application package and send it to the bootloader it doesn't work. There are different kind of failure I get for different tries.

 - If I build the blinky example (peripheral/blank) from the SDK and then want to generate a package, it says that it's a wrong value for the size.

 - If I generate a package from the "blinky_mbr.hex" from the test images, it works but after downloading and starting the app nothing happens.

It worked with an example which contains a softdevice.

How do I build a project and generate the application package if it doesn't contains a softdevice? (I work with armgcc on linux, no IDE)

Devboard: PCA10056 (NRF52840)

SDK: 15.2.0

  • Hello,

    I have not seen how you have set up the bootloader, nor generated the DFU images, but here is a great blog post written by my colleague. 

    I know that it refers to SDK12 (or later), but it still works great, and you should be able to use this blog post as a guide for SDK15.2.0 as well.

    In addition to explaining how to compile the bootloader with keys, it describes how to generate packets with the same key, what to write in application-version, --hw-version and so on.

    Let me know if you are still stuck after going through this tutorial.

    Best regards,

    Edvin

  • Hello Edvin,

    Thanks for your reply. My problem was not part of compiling the bootloader or generate the packages.

    I had to change the Flashadress of the application in its linker script. After setting the start value for flash of the application to 0x0002600 it worked all fine.

    By doing this, I saw there is a different to the SDK Documentation: In the documentation the start of the bootloader schould be at 0x000F8000, in the linker script the bootloader start adress ist at 0x000F6000.

    Best regards,

    Dex

  • Hello Dex,

    Sorry for the late reply, I have been out of office this week.

    Thank you for reporting. Did this solve your issue, or are you still stuck?

    Best regards,

    Edvin

Related