Hi ,
Our custom board uses the nRF52840 chip, and we followed the Nordic official webinar 'Adding Custom Board Support in nRF Connect SDK' during development.
We noticed that the blinky sample example does not work in debug mode or after flashing. In debug mode, the code halts somewhere in reset.s or sometimes the cpu_idle file, but it never reaches the main function.
After significant troubleshooting, we discovered that the LED blinks and single stepping becomes possible if we enable the internal RC oscillator with the following configurations in the prj.conf file:
#Internal RC low-frequency oscillator (LFRC)
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y
We're also working with the hardware team to investigate potential issues with the external crystal or capacitors. We'd like to investigate the issue from a firmware perspective simultaneously. The same problem has been observed on three separate boards.
Thanks & Regards,
Gaurav