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

REMOTE DATA SIZE EXCEED LIMIT on nrf51822xxAB with DFU

Hi, I have problem with DFU for 51822xxAB witch has 128kB flash. I use dual bank bootloader for nrf51422xxAC witch has 256kB flash memory within nrf51822xxAB. Ofcourse, I change memory settings:

IROM1 Start:0x1c000
IROM1 Size:0x3C00

IRAM1 Start:0x20002000
IRAM1 Size:0x1F80

IRAM2 Start:0x20003F80
IRAM2 Size:0x80

Settings of my app:

IROM1 Start:0x16000
IROM1 Size:0x25000

IRAM1 Start:0x20002000
IRAM1 Size:0x2000

My app has only 13kB. Bootloader has 16kB. SoftDevice SD110 v7.1 has 88kB

I get this error REMOTE DATA SIZE EXCEED LIMIT when I uploading file to nrf51822xxAB by nRF Toolbox. When I try flash file with size 2kB I will get error REMOTE OPERATION FAILED on 10 percent of uploading.

UPDATE 3.4.2017:

Zip-file:deufol13.zip Hex-file:deufol13.hex Bootloader hex-file:nrf51422_xxac.hex

Parents
  • You should set the size of the application, i.e. IROM1 Size to Bootloader Start Address - Application Start Address.

    In your case that would be 0x1C000 - 0x16000 = 0x6000


    UPDATE 03.04.17


    As you stated in your question, the bootloader requires 16kB and the SoftDevice requires 88kB. This leaves 24kB for the application. The dual bank bootloader will divide the application space in to two banks of 12kB, bank 0 which holds the current application and bank 1 where the new application firmware will be placed before it is written to bank 0. Thus, you cannot use the dual bank bootloader to update an application that is larger than 12kB. I cannot explain the case where you've tried updating the firmware with a 2kB application image, but if you attach that as well, then I can test it.

    Best regards Bjørn

  • Please elaborate. Do you still get the REMOTE DATA SIZE EXCEED LIMIT when you try to perform the DFU?

Reply Children
No Data
Related