Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

system crash while calling sd_ble_gap_tx_power_set() from ble_radio_notification interrupt handler.

Problem Statement: For one of our requirement we have to switch tx power in steps in ascending order continuously.

We are using ble_radio_notification feature to achieve this which we have used with nrf51 and SdK 8 effactivaly in past.

We are enabling radio notification interrupt for radio inactive condition and within the interrupt handler ble_radio_notification() we try to change tx power for next advertise event.

We are observing if we call sd_ble_gap_tx_power_set() from  ble_radio_notification() system crashes at same instance.

 

 

Attached is the code snippet to try it out with IAR and nrf52840 preview kit. The base example used for the purpose is.

nRF5_SDK_14.0.0_3bcc1f7\examples\ble_peripheral\ble_app_blinky

 

Is there any alternate way to achieve the primary problem statement.

Cheers,

Shishir

Parents Reply Children
No Data
Related