I modified "pca10001\ble\experimental\ble_app_uart". I add 1 button(app_button.c) and 1 second Timer (app_timer.c)to display clock through UART to PC terminal.
But the system reset every 3minutes. Pls help me.
I modified "pca10001\ble\experimental\ble_app_uart". I add 1 button(app_button.c) and 1 second Timer (app_timer.c)to display clock through UART to PC terminal.
But the system reset every 3minutes. Pls help me.
This happens because the advertising is setup to have a timeout of 180 s (3 minutes), and in the on_ble_evt() method, the chip is put in system off when this occurs. In system off, everything is turned off, and the clock hence stops.
Please note that the chip doesn't reset before you actually wake it up again; it will just stay in system off waiting for a reset or a GPIO configured with SENSE is set.
This happens because the advertising is setup to have a timeout of 180 s (3 minutes), and in the on_ble_evt() method, the chip is put in system off when this occurs. In system off, everything is turned off, and the clock hence stops.
Please note that the chip doesn't reset before you actually wake it up again; it will just stay in system off waiting for a reset or a GPIO configured with SENSE is set.