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

CRC error in bootloader when watchdog is enabled

Hello,

I encountered a crc check error when update application via bootloader. The SDK version is 12.2.0. I found that this error is related to watchdog.

In the beginning, I add watchdog initialization code in application and add watchdog feed action in bootloader wait_for_event function, but the bootloader will reset, seems that feed action doesn't take effect.

and then I try to add watchdog initialization code in to bootloader too, the watchdog feed action in bootloader is totally same as before. This time, bootloader will not reset when doing firmware upgrading. But when firmware transfer finished, I got a CRC error, firmware CRC validation fail.

The weird thing is that when I erase all the chip and then program softdevice and bootloader but without application, the CRC error is disappear. The crc error just appear when I try to do upgrading when application was run.

I found someone seems has same issue with me: devzone.nordicsemi.com/.../

But I have found the root cause in this page, when the CRC error happen.
Feed watchdog just in wait_for_event function is not enough?

Best Regards Jerry

Related