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

Memory problem when using buttonless DFU.

I use nrf52832-AA, S132

I use Fstorage from 0x68000 to 0x73FFF in flash memory.

Reading or writing data from that memory.

NRF_FSTORAGE_DEF(nrf_fstorage_t fstorage) =
{
    /* Set a handler for fstorage events. */
    .evt_handler = fstorage_evt_handler,

    /* These below are the boundaries of the flash space assigned to this instance of fstorage.
     * You must set these manually, even at runtime, before nrf_fstorage_init() is called.
     * The function nrf5_flash_end_addr_get() can be used to retrieve the last address on the
     * last page of flash available to write data. */
    .start_addr = 0x68000,
    .end_addr   = 0x73FFF,
};

It doesn't have any problem working normally.

However, there is a memory problem when updating an application with the buttonless DFU.

If you erase the chip and read the memory, it's 0xFF.
However, after updating the application with the buttonless DFU, there are some strange values in the memory.

I have no idea why.
Did I miss anything?

Thank you.

happy new year.

Related