Hi,
We have an unusual problem involving FPU interrupt clearing and battery charge state on the NRF52832.
We are applying the following fix to reduce power consumption as described in NRF52 Errata Rev 2 v1.1
3.25 [87] CPU: Unexpected wake from System ON Idle when using FPU
The following code is added to the while-loop in main:
#define FPU_EXCEPTION_MASK 0x0000009F
__set_FPSCR(__get_FPSCR() & ~(FPU_EXCEPTION_MASK));
(void) __get_FPSCR();
NVIC_ClearPendingIRQ(FPU_IRQn);
uint32_t err_code = sd_app_evt_wait();
The strange thing is that, when the battery charge has reached full, the device enters a continuous reset cycle until the charger is removed.
However if we remove the FPU code above, this doesn't happen.
Any ideas on what might be the cause of this issue?
Regards
Ryan