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.

Generate a reset using the TMS570ls3137

Other Parts Discussed in Thread: TMS570LS3137

Hi,guys:

Is there any way to generate a reset of the TMS570LS3137 in the program without using the DWD or DWWD? Means that can I control the program to reset when a problem happens by some code?

If the code is available, which classification is "reset" belong to? the warm reset or the cold reset(nPORST?).If the reset is warm reset, when the board's error pin(nERROR)is low(an error happens according to the TMS570LS3137 safety functions), can I generate a reset to clear the flags of the error signal and let the program runs from the start?

I've noticed that the TRM said the error pin flag cannot be cleared unless the cold reset,so if the warm cannot make the system runs again, is there any possible way to generate a cold reset using the program?

Regards,

yong

  • Yong,

    If you write 1 to bit15 of SYSECR can cause a warm reset. It will not clear the nERROR pin. but you can force the clear of Error pin status by write to ESM registers.

    Internal DWD reset is also a warm reset too.

    The only cold reset is: force a 0 on the PORRST pin, or force a over/under voltage failure to the MCU.

    Regards,

    Haixiao

  • Thanks a lot, you mean that I cannot use the program to make the cold reset happen. If the situation is the nERROR pin is low(the led is lighted), then the proper sequence is to clear the Error pin status by write to ESM registers then write the SYSECR to generate a warm reset?

    If the hardware cannot pass the selftest(just was showed as the nERROR pin), then If you just clear the Error pin and generate a warm reset, the system will still not enter into the main() code? 

    Regards,

    yong

  • yong zhang2 said:

    Thanks a lot, you mean that I cannot use the program to make the cold reset happen. If the situation is the nERROR pin is low(the led is lighted), then the proper sequence is to clear the Error pin status by write to ESM registers then write the SYSECR to generate a warm reset?

    HW: Yes

    If the hardware cannot pass the selftest(just was showed as the nERROR pin), then If you just clear the Error pin and generate a warm reset, the system will still not enter into the main() code? 

    HW: Yes

    Regards,

    yong

  • Haixiao,

    Is it possible however to generate a power on reset through the TPS65381 companion (under software control of the MCU?)

  • Anthony F. Seely said:

    Haixiao,

    Is it possible however to generate a power on reset through the TPS65381 companion (under software control of the MCU?)

    HW: Yes. For example, if you don't serve the watchdog, it will assert a power on reset to the MCU.