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

After loading latest binary into chip, entire Flash is not erased

Hello,

 

I am using Seeger for Flashing code and Debugging. I ported code from “flash_fstorage” example code to “ble_app_blinky”. I have few queries on write data into Flash.

 

  • Even after flashing nRF52832, entire Flash is not erased. Just before running I saw the flash at 0x60000 but still I am seeing the data I have written in my previous debugging cycle.
    1. Will not entire Flash be erased, while loading image using Seeger.
    2. Are there any settings to erase entire Flash.
    3. Do I need to erase explicitly by calling nrf_fstorage_erase().

 

  • In “ble_app_blinky”, as part of wait_for_flash_ready(), I replaced power_manage() to idle_state_handle(). Is this fine.

void wait_for_flash_ready(nrf_fstorage_t const * p_fstorage)

{

    /* While fstorage is busy, sleep and wait for an event. */

    while (nrf_fstorage_is_busy(p_fstorage))

    {

        idle_state_handle();

    }

}

 

Attached Snapshot and code file for your reference.

 

Thanks & Regards

Vishnu Beema

Parents Reply Children
No Data
Related