nRF52832 how to write or read to internal flash? SDK IS 15:00
nRF52832 how to write or read to internal flash? SDK IS 15:00
Flash Handling Library: http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_flash.html?cp=4_0_0_3_15
Experimental: Flash Data Storage: http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_fds.html?cp=4_0_0_3_52
Experimental: Flash Storage: infocenter.nordicsemi.com/.../lib_fstorage.html
NRF_LOG_INFO("Writing \"%x\" to flash.", m_data);
rc = nrf_fstorage_write(&fstorage, 0x3e200, &m_data, sizeof(m_data), NULL);
APP_ERROR_CHECK(rc);
wait_for_flash_ready(&fstorage);
NRF_LOG_INFO("Donelql.");
rc = nrf_fstorage_read(&fstorage, 0x3e200, read_data, sizeof(read_data));
APP_ERROR_CHECK(rc);
wait_for_flash_ready(&fstorage);
Above is my program. The first time I let m_data =0xDEADBEEF , reading data is 0xDEADBEEF, that is OK. But the second time I let m_data =0x5E8D7E4F; reading data is 0x5E8D3E4F, that is FAULT . why?.
This driver allows writing to the non-volatile memory (NVM) regions of the nRF5. In order to write to NVM the controller must be powered on and the relevant page must be erased.
ret_code_t rc = nrf_fstorage_erase(&fstorage, 0x3e200, 1, NULL);
nrf_fstorage_eras doesnot work. why?
Are you using the flash_storage example ?
I AM using the flash_Fstorage example