I want to write data to flash, but how do I know which addresses are available?

Hello,

I want to write data to flash, but how do I know which addresses are available?

I use the nrf52833.

Parents
  • Please take a look at the settings library in the Zephyr which gives you a very high level API to write to non volatile memory when you do not know which address to write to. You can use the default set partition in the system as this most likely will be initialized and used by other parts of the zephyr subsystem (in a non conflicting way) and your application can still use the API.

    A sample for this can be seen here

Reply
  • Please take a look at the settings library in the Zephyr which gives you a very high level API to write to non volatile memory when you do not know which address to write to. You can use the default set partition in the system as this most likely will be initialized and used by other parts of the zephyr subsystem (in a non conflicting way) and your application can still use the API.

    A sample for this can be seen here

Children
No Data
Related