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.

TPS65381-Q1: When use TPS65381-Q1 with TMS570,how to disable the Watchdog Fail Counter in ACTIVE STATE?

Part Number: TPS65381-Q1
Other Parts Discussed in Thread: TMS570LS1115

Hello

One problem maybe need your help,thanks a lot.

Environment: CCS6.2

Software: Bootloader and Application program

Hardware:TMS570LS1115,TPS65381-Q1

Description:

Because the bootloader  have not integrate the instruction to reset the WDT(Integrated the Reset instruction is very hard because of other reasons ),then run in the bootloader,because of the WDT Fail Counter reachs to 7,so the TPS65381-Q1 will enter the SAFE STATE and cause the TMS570 reset.

If we disable the Watchdog Reset function,TMS570 will not be reset in SAFE,but we have to take several hundreds milliseconds to decrease the Watchdog Fail Counter. Now we want to shorten the time of the process.

Pls help the case,do you have the way disable the Watchdog Fail Counter?If not,do you have other suggestion to solve the problem?

Thanks for help.

  • Hello,

    I've moved your post to the Automotive forum to ensure the proper experts can see it. However, I believe the engineers who support this are out of the office for the holidays. They will be back after the new year, and will respond to your question then.
  • Hello,

    If the TPS65381-Q1 is not initialized in DIAGNOSTIC state, it does not enter SAFE state due to the normal watchdog, it will enter SAFE state due to DIAGNOSTIC state timeout. Once RESET is released the MCU, regardless of MCU type, needs to take one of two actions within 512ms of NRES going high (RESET released). Either configure TPS65381, run system diagnostics as necessary including syncing the watchdog, then either set DIAG_EXIT to take the TPS65381 to ACTIVE state, or if you are doing software development then the DIAG_EXIT_MASK bit may be set to hold the TPS65381 in DIAGNOSTIC state. This is documented in the TPS65381 Rev F datasheet on page 72, device controller state diagram as the path from DIAGNOSTIC to SAFE state. DIAGNOSTIC state Time-out is described in section 5.4.1.23 DIAGNOSTIC State in the NOTE.

    So you need to make sure your TMS570 bootloading routine is configuring the device and handling the DIAGNOSTIC state actions in time to either go to ACTIVE or remain in DIAGNOSIC state. We are not the experts on the TMS570 software library, but those specific questions may be posted to the appropriate MCU forum.

    Please note, the TPS65381 device is supported on the Automotive forum where this post was moved.

    Scott
  • Thank you,Scott.

    Yes,if our bootloading routine could configure the TPS65381-Q1,everything is OK,but we can't.Because our bootloading routine is developed by other corporation,and they have not integrate the configure instructions of TPS65381-Q1.Worse,if we require them modify the bootloading routine,we need to spend a lot of money to do this.

    So,could you help give us any more suggestions? Or,could you help check the solution as below ?

    1. When we want to enter bootloading routine,via the TMS570 send the requestion to VCU,then VCU will response and handle the IGN or CANWU pin of TPS65381-Q1.It makes TPS65381-Q1 enter STANDBY STATE,TMS570 will reboot.

    2. Enter RESET STATE after STANDBY STATE, then DIAGNOSTIC STATE.In DIAGNOSTIC STATE,set the DIAG_EXIT_MASK or DIAG_EXIT register to hold TPS65381-Q1 in DIAGNOSTIC STATE.

    3. In DIAGNOSTIC STATE,disable the Watchdog.Then enter bootloading routine flash the new app.

  • Thanks for your help.