2023-04-29 07:55 AM
I have BlueNRG-2 application that writes to flash. I have followed the instructions in section 3.15 of the manual and use aci_hal_end_of_radio_activity_event() to detect the next radio activity and time the flash to not write during that time. However, it seems that occasionally this won't work and the device will stop radio communication and calling the Blue_handler() interrupt. When this happens, RADIO_GetStatus() returns 2. I can restart the interrupt via TIMER_SetWakeupTime(0, 0), but the radio still will not work. If I reboot via NVIC_SystemReset(), it still won't work. Only a power cycle (remove power and restore power) will get the device working again. What can I do to programmatically fix the radio?