Hello,
I have a question about MCU programming.
When in-vehicle programming without debug mode, the watchdog refresh can be disabled during INIT_FS state of the fail-safe logic. INIT_FS can be entered by a reset request with RSTB_REQ bit in SF_OUTPUT_REQUEST register.
QUESTION: if request a low pulse on the RSTb, MCU will reset?
when MCU request SBC to reset, both SBC and MCU will be reset, then SBC go to INIT_FS mode and MCU start to run the code from the beginning after MCU reset recover to high. MCU will process INIT codes and have first watchdog within 256ms. it is the same process when the system start to run.
@guoweisun But after Reset, how we will decide why this reset happen for reprogramming purpose or normal reset (As both SBC and MCU both are reset after writing RSTB_REQ bit in SF_OUTPUT_REGISTER) ?
For reprogramming : we have to disable the watchdog by writing WD_WINDOW_3:0= 0000
Normal Reset: We have to enable the watchdog ( By selecting watchdog window (3ms))
How to handle these two thing in SBC initialization part ?
Thanks