after deploied peripheral peoject into nRF52833 and enter debugging, the program was blocking in somewhere.


after deploied peripheral peoject into nRF52833 and enter debugging, the program was blocking in somewhere.


Could you try to enabling logging CONFIG_LOG=y in the prj.conf file, open a terminal and see if you get any useful information about why it's failing? If you're debugging you may want to set CONFIG_DEBUG_OPTIMIZATIONS=y.
By the way, if you're starting a new project in NCS, we recommend using nRF Connect for VS Code:
https://www.youtube.com/watch?v=ufjv2NaLfN8
Best regards,
Simon
It was a wrong clock source choice cause this problem, after selected Synthesized from HFCLK <CLOCK_CONTROL_NRF_K32SRC_SYNTH>, the program can run as nomal.
Is any configure should i change to support 32MHZ external system clock? If not, i consider i had fixed this problem.
Thanks.
I'm happy you found a solution. I guess you're using a custom board without an external LF crystal.
You can also use the RC oscillator (CLOCK_CONTROL_NRF_K32SRC_RC), read more about the different options here: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52833%2Fclock.html&cp=4_1_0_4_3_1&anchor=concept_xkj_np1_2r
Best regards,
Simon