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