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

Disconnect while download .zip file from bootloader in nRF51822...

Hello,

I am working on nRF51822 using SDK 12.3.0 in IAR embedded workbench.

I added dfu service and one custom service in my application.

my problem is when I download .zip file through bootloader at that time code is not getting download successfully and below graph disconnect.

Path of bootloader code is given below,

..\..\SDK_12.3.0\examples\dfu\bootloader_secure

And I create zip file using below command in command prompt:

nrfutil pkg generate --hw-version 51 --application-version 1 --application ble_app_template_pca10028_s130.hex --sd-req 0x87 --key-file private.key app_dfu_package.zip

In my application FLASH and RAM address is shown below,

ROM start: 0x1b000  ROM end: 0x3ffff

RAM start: 0x200025e0 RAM end: 0x20004000

In bootloader FLASH and RAM address is shown below:

ROM start: 0x3ac00 ROM end: 0x3fbff

RAM start: 0x20002c00 RAM end: 0x20007f7f

So give me suggestion for solving my problem as soon as possible.

Thanks & regards,

Urvisha Andani 

Parents
  • Hi

    You should set the application RAM and ROM end addresses to end before the RAM and ROM start addresses of your bootloader. It seems here like the addresses are overlapping. RAM and ROM start is best to set at a start address = RAM total size - RAM bootloader size, and ROM total size -  ROM bootloader size. Then you should make sure that the application RAM and ROM end ends earlier than the bootloader's start addresses.

    Best regards,

    Simon

Reply
  • Hi

    You should set the application RAM and ROM end addresses to end before the RAM and ROM start addresses of your bootloader. It seems here like the addresses are overlapping. RAM and ROM start is best to set at a start address = RAM total size - RAM bootloader size, and ROM total size -  ROM bootloader size. Then you should make sure that the application RAM and ROM end ends earlier than the bootloader's start addresses.

    Best regards,

    Simon

Children
Related