Dear All,
We are working on a custom board with NRF51822.Everything works fine apart from the timer. What we are doing is that once the board is booted, it reads some values from an external ADC (240hz sampling rate) and write those values to an external flash device (every 30 seconds). We use timer to control this (timer is supposed to wake up every 3ms). All these run on top of softdevice (s110,7.0.0) as we need to connect to the board occasionally to read those values out.
The problem that we have now is the boards are working fine for the first 15 mins without any issue (ble can connect, data read and write to flash, flash can be read too). However, after certain period of time (more likely to be 15 mins or so), the boards halt completely (no action at all and cannot be connected). When this happens, we'll have to manually power restart the board and everything resumes working fine for another 15 mins.
We are suspecting that the board goes to deep sleep mode on its own for some reasons. we have sd_app_evt_wait in our main while loop. but this should just put the board in low power mode. As long as there is a interrupt from ADC or flash writing, the board should be woke up? Or why it works fine for 15 mins only?
We've searched around the zone but don't seem to find a discussion on this? Any help on this would be deeply appreciated!