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

On NRF51822, flash write hangs on writing to NRF_NVMC->CONFIG location.

Flash write and erase works fine, if ble is not initialized( ble_stack_init()).

Once ble is initialized, any write to NRF_NVMC->CONFIG hangs the system.

Do I need to check for radio active signal ?

Thanks.

  • FormerMember
    0 FormerMember

    Hello,

    When the softDevice is enabled, the functions sd_flash_erase/write have to be used for erase/write operations. If you try to access the NVMC directly when the softDevice is enabled, it will result in a hardfault. If you want to access the NVMC directly you will have to disable the softDevice using sd_softdevice_disable().

    Regards, Kristin

Related