This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Application stuck after bootloader start with WDT enabled

Hi,

I am using a custom board with the nrf52832 with SDK 13 and I have a bootloader and an application that both configure and feed the WDT.

However, upon restart (power off, followed by a power on) the application sometimes starts but gets stuck. This occurs at random instants and I see that the application starts with a LED right at the beginning of the code. However nothing else after that runs.

What might be causing this? I do need the WDT in the app and the bootloader to ensure that the MCU can recover properly

Thank you in advance.

Parents Reply
  • It could be that the code somewhere tries to turn off the LF clock while the WDT is running, and therefore get stuck. But to figure out where in the code you are stuck, connect the debugger, and use “nrfjprog –readregs”. You will then need to take a look at the printed PC value to figure out where in the code you are. Use the PC value together with the .elf file and addr2line to find the file name and line number of where in the code you are. E.g.

    addr2line -e filename.elf 0x23680

Children
Related