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.
I met the same problem. And I changed 180s to 0, but it doesn't work at all. I also found it must small than 180s. I set 179s, it's OK. I set 181s, it doesn't work, I means that doggle can't detect it at all. By the way, I commented sd_power_system_off() in on_ble_evt().
Take a look at this: https://devzone.nordicsemi.com/index.php/advertising-with-no-timeout
Thank you! It works well now! But another problem happened. Once I disconnect it from dongle, the system will be reset soon. What happened?
Yes.When I use lightblue to test device, it happens sometimes.