Custom nRF52832 board stuck in cpu_idle.s

Hi,

I'm using a custom nrf52832 board (picture below), and I'm using nRF Connect SDK in visual code studio. I'm new to nRF so I'm a little confused about programming custom boards. I've chosen nRF52 DK nRF52832 as board.

I uploaded blinky code but the problem is it seems that microcontroller stuck as some point and led doesn't blink. When I run a debug, it will stuck in cpu_idle.S :

 

Thank you in advance

Parents Reply Children
  • Hi, 

    Thanks for your reply. Yes there is a 32kHz crystal on the board connected to the pins P0.0 and P0.1. However, I'm using these configs in prj.conf to make sure that external LF clock is not the problem :

    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_500PPM=y
    CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC_CALIBRATION=y
    CONFIG_CLOCK_CONTROL_NRF_CALIBRATION_LF_ALWAYS_ON=y

    The point is whenever I remove these lines (to use external crystal) the code get stuck somewhere else : 



    So I guess there might be a problem with external 32kHz as well, So I decided to bypass external 32kHz but the program stuck at line 105. Maybe I'm not using the right config for internal RC ?

  • Update :

    I've just uploaded an example Hex file downloaded from nRF5 SDK page located in examples\ble_peripheral\ble_app_hrs\hex
    It works fine, so the problem is the software and programming with SDK in vscode. How can I configure SDK in vscode to be able to program custom boards rather than DKs ? In board select option there're only boards, no option for a custom board.

Related