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

how to add the feature of flashwriter to app_ble_beacon?

I have a PCA10040 board and use the development soft of SEGGER Embedded Studio for ARM 4.50.

I ran the project  \nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_beacon

and \nRF5_SDK_15.3.0_59ac345\examples\peripheral\flashwrite successfully.

Now I want creat a new project having both feature of flashwriter and app_ble_beacon.

I added the source of flashwriter to app_ble_beacon,and passed the building, but it is always appeared error.

I don't know how to modify them.

Best regard 

Zou Xiaohong

ble_app_beacon_ok-uart2.zip

   

  • Hi,

    Access to the NVMC is restricted as long as the softdevice is enabled because flash operations may block the Softdevice and thus interfere with timing-critical protocol events. So the flashwrite implementation which relies on direct access to the NVMC is not compatible with Bluetooth applications.  I recommend reading through the Flash memory API chapter of the Softdevice specification for a bit more background on this limitation.

    When the Softdevice is present you can use the  sd_flash_*() APIs instead. You may also consider using fstorage/fds on top to manage the flash storage, especially if you intend to store data to flash frequently.

    Best regards,

    Vidar

    SDK flash management modules:

    Flash Data Storage

    Flash Storage

Related