2146252_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2146252_en-US

2146252_en-US

Watchdog disabled after bootloader jumps to firmware

Dear Everyone,

I'm working on the firmware over the air functionality on EVKB-1170 with imxrt1176.  I use OTA basic example as a base. I enabled watchdog from main of mcuboot_opensource project. The watchdog is tested on this level, I use timer interrupt to feed the watchdog. The problem arises after bootloader jumps to firmware. Timeris still running but when I test condition where timer stops feeding watchdog the reset doesn't happen. It looks like the watchdog is disabled.


Is there anything other than WDOG_DISABLE flag in IMRT1176_cm7.h that I should check to ensure watchdog is running after jumping to new image?


Best Regards,

Jakub

Re: Watchdog disabled after bootloader jumps to firmware

Hi @jslota13245 ,

I'm glad to hear your good news.

Thank you for your reply and  solution sharing.

If you meet any issue in the future, welcome to create the new question post.


Wish you a good day!

Best Regards

MayLiu

Re: Watchdog disabled after bootloader jumps to firmware

Dear MayLiu,

Thank you very much for your time. The issue was on my side. I must have forgotten to erase the flash before flashing the new firmware, which would explain why it didn't behave as you described after i changed DISABLE_WDOG to 0. I suspect some artifacts remained in the flash from which it booted.

Thank you again for help, I wish you a good day

Re: Watchdog disabled after bootloader jumps to firmware

Hi @jslota13245 ,

Thank you so much for your interest in our products and for using our community.

In your firmware project, what is the definition of "DISABLE_WDOG" in the "system_MIMXRT1176_cm7.h" file?

mayliu1_0-1754380140122.png

When bootloader jumps to firmware, then code execution begins within the ResetISR, which subsequently calls the SystemInit() function. As part of its default operation,  SystemInit()  disables the watchdog timer.

mayliu1_1-1754380828404.png

Wish it helps you.
If you still have question about it, please kindly let me know.

Best Regards
MayLiu

Tags (1)
No ratings
Version history
Last update:
‎11-20-2025 03:38 PM
Updated by: