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

Problems with the SDK 6 Single Bank bootloader for nrf51822

I am using nrf51822 with sdk 6. I was using double bank ble dfu for the firmware upgrade. But now I have to switch to single bank dfu since my code size has exceeded the maximum limit. I tried using the example given in this link Single bank dfu. I having some problem with this example. When I try to upgrade the bootloader using nrftool box it gives error "REMOTE DATA SIZE EXCEEDS LIMIT". I think this is because the single bank size is much bigger than the double bank dfu, as a result the IROM settings also different. I don't know how did this thing got more codesize. Second thing that I noticed is when I try to upgrade the bootloader itself it gives the error "REMOTE DFU NOT SUPPORTED". So I don't want to continue with the given example. How can I convert dual bank to single bank dfu for sdk 6. Which all files should I modify ?

Parents
  • @Mukesh: The size of the bootloader is bigger because I removed optimization , as far as I remember. You can enable optimization and see if it can get to the similar size with the dual bank bootloader. Also please modify the bootloader start address so that it has the same start address as your dual bank bootloader.

    If you want to modify the dual bank bootloader yourself, try look for the comment "SINGLEBANK PATCH" in the code.

Reply
  • @Mukesh: The size of the bootloader is bigger because I removed optimization , as far as I remember. You can enable optimization and see if it can get to the similar size with the dual bank bootloader. Also please modify the bootloader start address so that it has the same start address as your dual bank bootloader.

    If you want to modify the dual bank bootloader yourself, try look for the comment "SINGLEBANK PATCH" in the code.

Children
No Data
Related