This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

S120 Bootloader target options

Here Hung Bui (@hungbui) gave the good answer how to use bootloader with new S120 v.2.0.

I'm sorry, but can anybody check is I have a right settings on the Keil uVision options->target? Please note that I use a nRF51822__aa version and PCA10001 board (don't know if this matter or not).

Thanks.

TaskOptions ScreenClip.png

  • @Alev: Since you are using nRF51822 QFAA version, the main difference is that you have 16kB RAM instead of 32 kB as on QFAC variant. What you need to modify is the RAM setting:

    IRAM1 0x20002C00 0x1380

    IRAM2 0x20003F80 0x80

    Also because you are using PCA10001 you may need to mount the GPIO pin for button and LEDs to match with your board.

    Tool to generate .zip file from .bin or .axf (only for application, not for bootloader or softdevice)

    zipgen.bat

  • Thank you. We've made a step up. But still have a problem. With your memory values, bootloader started and I can see it with MasterControlPanel on my PC. I can discover services. I can even start DFU, select package (I prepared DFU package with "nrf.exe dfu genpkg --application application.hex --application-version 0x01 dfu1.zip" command). But then I received an error. Please see a screenshot here. Please point me where I can start to find the problem? (Maybe create a separate question for this?)

  • @Alev: The application file should be binary .bin file, not .hex file. Have a look here. You have to make sure you set the softdevice (--sd-req)requirement to the correct S120 version or set it to 0xFFFE to accept any softdeivce.

    I attached in my answer a useful tool made by my coworker Vidar to generate the .zip file automatically from .bin file or .axf file. Please leave the .bin or .axf and the .bat file at the same folder with the nrf.exe.

  • @hungbui Thank you a lot! Bootloader works!

    You point me to the documentation, but I'd read it earlier - the misunderstanding is in the next sentence from the SDK doc: In most cases, you can use the image in HEX format to perform the DFU. So, maybe, change/remove this sentence from the next SDK releases.

  • Great that it worked for you. It's true that it may cause some confusion in the documentation. The reason was that it was both hex file and bin file supported before on earlier version. Currently hex file is still supported on nRFToolbox on Android and iOS. I will request an update for the documentation internally.

Related