As the tittle,can anyone tell me how to save data to the flash with nRF51822 ? I use SDK9.0.0 and S110. before I turn off my machine, I want to save several parameters to the flash in order to read them out next time I turn on the system. it seems that the pstorage module is no used, because after I turn the system off, the block ID I registered was missed, I ever used sd_flash_write(); like this :
len = p_evt_write->len > 8? 8:p_evt_write->len; err_code = sd_flash_write((uint32_t *)0x3e418, (uint32_t *)&p_evt_write->data[0], len); APP_ERROR_CHECK(err_code);
but,after this step,the address of 0x3e418 has nothing, what's the matter ?