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

Is sd_flash_write() safe to use when Ant channel is open?

In the ant-to-ble bridge example in the 7.x.x SDK, there is the following comment in examples/multiprotocol/experimental_ble_ant_app_hrm/main.c:

   // Need to close the ANT channel to make it safe to write bonding information to flash
   err_code = sd_ant_channel_close(ANT_HRMRX_ANT_CHANNEL);
   APP_ERROR_CHECK(err_code);

The example is using pstorage, which uses the sd_flash_write() API, which says:

"This call takes control over the radio and the CPU during flash erase and write to make sure that they will not interfere with the flash access."

So why is it still necessary to close the ANT channel?

Parents Reply Children
No Data
Related