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

nrf51822 eeprom write/read 8bit sample code.

I want eeprom write and read about 8bit or 16bit. I need to example source code eeprom. please give me eeprom source code. thank you.

Parents
  • Hi,

    Are you talking about an external EEPROM, or do you want to write to the onboard flash?

    If it is an external EEPROM you will have to implement it youself, we recommend using a EEPROM which communicates over SPI or TWI, if the EEPROM communicates with a protocol you have to bitbang it will be difficult to implement alongside the SoftDevice.

    To write/read to the onboard flash you can use the fstorage module, an additional example for reading can be seen here.

    Best regards,

    Øyvind

Reply
  • Hi,

    Are you talking about an external EEPROM, or do you want to write to the onboard flash?

    If it is an external EEPROM you will have to implement it youself, we recommend using a EEPROM which communicates over SPI or TWI, if the EEPROM communicates with a protocol you have to bitbang it will be difficult to implement alongside the SoftDevice.

    To write/read to the onboard flash you can use the fstorage module, an additional example for reading can be seen here.

    Best regards,

    Øyvind

Children
Related