This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I'm looking for solution when entering ROM uart bootloader using ROM_UpdateUART when watchdog is enabled before.
if the watchdog time-out is small (like 1s) it may reset the MCU during bootloader programming period, and corrupt the whole process,
I don't want to increase the watchdog timeout before entering bootloader,
if only I could disable watchdog (I know this can't be done, only after reset) before entering bootloader mode
Any suggestions?
Excellent - you've enabled multiple MCU processes to (each) become "watchdog" monitored - even if (and especially if) they run at different rates.
We note your inspired use of (other) "counting flags" (not part of the MCU's watchdog) which serve to vastly expand the watchdog's capabilities - and provide (far) greater program security. Very well done - "treasure trove" of insight folks (i.e. "bookmark") - merci...
May I suggest that during that during that long, 1 second period and (only then) you switch to 1 second watchdog period? (as & if possible - we do not know your full program scheme nor requirements)
As poster Robert has well noted - if (other) vital processes are "interspersed" w/in that USB access - they should (continue) to be monitored - and at minimum "flag" any detected issues.
If not mistaken - I read (somewhere) that even "Einstein" liked that... (yet I sometimes "misread" and/or "misquote" - and I may (not) be "alone.")