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

Write in flash nrf52832 sdk 11s132 softdevice

Hi all,

i need to write in flash, and i try to use the example flash write of sdk. It works correctly but when i put it in my code, the writing register ( NRF_NVMC->CONFIG = (NVMC_CONFIG_WEN_Wen << NVMC_CONFIG_WEN_Pos);) failed.

The difference is that in my code i'm using the softdevice, how i can perform the write function in flash?

thanks, -Anna

Parents
  • You can't use those registers when the SoftDevice is present and enabled. I suggest you have a look at the fstorage and fds libraries.

  • Short answer: yes.

    In practice, a 'configuration' is just an area of flash plus a set of functions that fstorage uses to write to that area. You can 'share' a configuration or you can use different ones, depending on what you want to do.

Reply
  • Short answer: yes.

    In practice, a 'configuration' is just an area of flash plus a set of functions that fstorage uses to write to that area. You can 'share' a configuration or you can use different ones, depending on what you want to do.

Children
No Data