As a matter of fact that there is no special EEPROM in nrf52832 , the user data which need to be stored in nrf52832 should be written into the flash of nrf52832 . The SDK of nrf52832 has offered the interface of flash_write in the "peripheral >>flash write " example , as shown in picture 1 .
When developing with IAR IDE , the total flash of nrf52832 will be erased and reprogrammed . As a result , the user data will be erased . However , developer has to make sure that updating the code of nrf52832 should never erase the user data which stored in the nrf52832 . How to achive that goal ?
picture 1