Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

FW stuck in "lfclk_spinwait".

Hello, 

We made some custom boards for our project using NRF52805. following is a schematic of it.

My first aim to print "Hello world" on RTT every second. For that, I made my custom board and enabled the RTT. As the 32Khz external crystal is not connected, we must use internal RC. For that, I added the "CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y". Also, one LED is connected to P0.21. So, to disable the reset functionality I added "CONFIG_GPIO_AS_PINRESET=n". While debugging this firmware using VS code I found that FW is stuck in "lfclk_spinwait" function loop. 

Can anyone help me to identify and solve that issue?

Thanks,

Dinkar Patel

Parents Reply
  • Hi Dinkar,

    I see. I didn't know your project has MCUboot and the code hang in MCUboot, not the application.

    Then the reason is because MCUboot didn't get the configuration applied.

    If your project works with custom board files and does not have 32kHz crystal, then changing the board's _defconfig file is a good approach.

    Alternatively, you could also add the configuration to the MCUboot image. The simplest way is to add it to child_image/mcuboot.conf. Refer to the multi-image build documentation for more details and other methods.

    Regards,

    Hieu

Children
No Data
Related