This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Softdevice - NVS non volatile storage implementation.

Hello,

I am new to Nordic. I was trying to find a sample code that has implemented NVS / EEPROM (I don't want to use external EEPROM). But I did not find any example that has this. I had implemented NVS earlier in Zephyr but in softdevice I am seeking help.

Please help. Thanks in advance.

Thanks and regards,

Neeraj Dhekale

  • Hi Neeraj, 

    BADC0FFE is just the dummy "Hexspeak" I used in the flash_test () function to test writing to flash. It's just a magic word to be able to easily spot if it's written into flash or not.

    Please have a look at the code I sent. 

  • Hello Hung Bui,

    I just tried to re-flash your code and turn ON the terminal and just pressed the reset button on DK and it works. Output got displayed in UART. I am surprised, I had done the same before, but then it was not printed.

    Output:

    <info> app_timer: RTC: initialized.
    <info> app: Heart Rate Sensor example started.
    <info> app: Fast advertising.
    <info> app: Writing "BADC0FFE" to flash.
    <info> app: --> Event received: wrote 4 bytes at address 0x5E000.
    <info> app: Done.

    Anyways, Thank you so much for your support. Appreciated.

    Thanks and regards,

    Neeraj Dhekale

Related