System reset while enabling ADC in main loop

Hi all,

I occurred a weird phenomenon while debugging custom nRF52832 board.

Basic idea is to enable ADC(including nRF52832 ADC module and a LDO powering Analog front-end circuit) while receiving certain command via BLE.

It works properly when testing on 52832 DK, but only 1 out of 5 custom boards work as expected. 

The failure boards act normally until I send the command -- system seems reset immediately. 

Here are what the boards suppose to do after receiving the command:

  1. set the GPIO as output and put it high to drive the LDO
  2. initiate 52832 ADC module

I tried to set LDO driving pin high in front of the main loop and the failure boards works. But I just can't modify this pin inside the main loop whitout causing system reset.

Since DK and one of the custom boards works well, I assume the problem lies in the hardware. But which part might be the cause?

Thanks,

Ava   

Related