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

Updating the DFU with different app data reserve size

We are having a slight issue when we are trying to update the DFU. The original version had this setting for the data reserve:

#ifndef DFU_APP_DATA_RESERVED
#define DFU_APP_DATA_RESERVED           CODE_PAGE_SIZE * 0  
#endif

We changed this to:

#define DFU_APP_DATA_RESERVED           CODE_PAGE_SIZE * 2

When I try to update the DFU it transfers and loads the new DFU but the new DFU doesn’t seem to run. The running amperage seems to be almost zero. It makes me think that the device is hung up somewhere in the MBR or SoftDevice instead of running the DFU. I took a look at the flash. The old (no reserved flash) DFU has this for its settings (at least I believe it is its settings):

:10F00000FF00FFFFFF000000FFFFFFFF0000000008
:10F01000000000000000000000000000FFFFFFFFF4

The new DFU (2 pages of reserved flash) had this:

:10F00000FF00FFFFAA000000FFFFFFFF000000005D
:10F01000D03600000000000000000000FFFFFFFFEE

I am using s132 2.0.1 for the SoftDevice. Any idea what is going on?

Thanks

Related