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

DFU on S130

I'm developing application using your devices (PCA10001/PCA10000) and S130 SoftDevice. I tried to implement DFU/OTA feature in my app. For this purpose I used DFU sources distributed for Beacon "nRF51822 Beacon v1.1.0.zip" that based on S110. But I see that DFU takes a lot of RAM - about 5.5k that is acceptable for S110. As I use S130 that takes 10k RAM itself, leaving for application about 6k. So, I can't use DFU with S130 as it takes almost all available RAM.

Please correct me if I'm not right. Otherwise, please, suggest a way to use DFU on S130. Thanks.

Memory map capture memmap.png

Parents
  • @Yaroslav: It's true that the bootloader can take up quite a lot of RAM but it still fit into the 6K RAM available. You can also change the heap size to 0 to get the 1K ram allocated for Heap if you don't use dynamic memory relocation.

    We have ported the bootloader on SDK v6.1 to work with S130, you can have a look here. Note that it's provided as-is.

    bootloader_S130_v09.hex

  • I tried to change BOOTLOADER_REGION_START value to match size of my build but it has not affected UICR.BOOTLOADERADDR. Looks like my build of bootloader doesn't do it correctly. I checked it using J-Link Mem tool for view memory at address 0x10001014 and it still contain FFFFFFFF. Also after programming my bootloader by nRF Studio in memory-map window "bootloader" Region is not appeared, against to using other bootloaders provided by Nordic. I don't need any especial building bootloader myself, I just need working BTL for S130. So, could you please provide me your build of BTL that you mentioned early?

Reply
  • I tried to change BOOTLOADER_REGION_START value to match size of my build but it has not affected UICR.BOOTLOADERADDR. Looks like my build of bootloader doesn't do it correctly. I checked it using J-Link Mem tool for view memory at address 0x10001014 and it still contain FFFFFFFF. Also after programming my bootloader by nRF Studio in memory-map window "bootloader" Region is not appeared, against to using other bootloaders provided by Nordic. I don't need any especial building bootloader myself, I just need working BTL for S130. So, could you please provide me your build of BTL that you mentioned early?

Children
No Data
Related