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.

TMS320F280025C: Can't run after a SW reset

Expert 4051 points
Part Number: TMS320F280025C


Hi Champs,

Here is my case:

HW: F280025C LP

Step 1: Flash the MCU by using CCS + XDS110. I am NOT using debug mode.

Step 2: remove the XDS110 without removing the power supply. The MCU runs normally.

Step 3: Under receiving a command via UART, the MCU resets itself by using the API SysCtl_resetDevice --> The MCU stops. Seems that it is hold in reset state. Until a power cycle applies. Not randomly, but 100%.

If I use serial_flash_programmer utility in stead of CCS & JTAG in Step 1, ie. flashing the MCU via UART, I won't see the issue in Step 3.

Do you have any idea of what is the root cause?

Regards,

Kien Nguyen

  • Nguyen,

    SysCtl_resetDevice function writes incorrect key to watchdog register to trigger watchdog reset. This should pull XRSn low for around 512tc(OSCCLK) cycles and then pulled high.

    First thing to try would be to check whether your program runs standalone when you are programming using CCS. Your application program is working successfully from flash only when you are able to run your application without JTAG connection. If this doesn't work, then there is a problem in your application flow.

    Regards,

    Manoj

  • Manoj,

    Thanks for your reply.

    Yes, my program runs properly in standalone mode. After flashing the MCU and disconnecting the XDS110, the MCU still can run but then it hangs if I try to do a SW reset as I mentioned earlier.

    Regards,

    Kien Nguyen

  • Kien,

    Did you find where the CPU is hanging on a SW reset?

    Regards,

    Manoj