Based on 'ble_app_template' in nRF5_SDK_12.2.0 (S132), I develop a program with nRF52832.
The problem is that the program will restart after reaching APP_ADV_TIMEOUT_IN_SECONDS (instead of going to sleep). All the other fuctions work well.
Resources that I have used: Peripherals: the SAADC (triggered by NRF_DRV_TIMER_INSTANCE(1) via PPI), UART and some GPIOs. BLE services: BAS, DIS, NUS, HRS and a costomer-defined services.
I have implemented several APP_TIMERs. But find no conflicts.
Is there any idea about the problem?