I encounter a problem to switch to DFU mode from UART when BLE is connected and one 5ms timer keeps running for heart rate sensing alg. Maybe it's the reason keeps BLE busy and missed the signal I send for switing to DFU mode for OTA the firmware. Thus, any flag or command I can use to know which mode I'm running ? i.e. if I'm under UART , then no need to run the timer and OTA should be no problem.
Thank you