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.

TMS320F280049: SW reset

Part Number: TMS320F280049

Dear team,

 

Customer is encountering a problem during bootloader function debugging.

When the bootloader process is finished they want to reset the device. To do this they write an invalid value to watchdog WDCHK field to generate the SW reset but after execute the SW reset routine the device seems to reset again and again and can’t normally run. After a power recycle, it becomes OK.

They’ll try to disable the watchdog before run the sw reset routine.  

We appreciate your guidance.

 

The code to generate sw reset as below:

 

DINT;

IFR = 0x0000;

EALLOW;

WdRegs.WDCR.bit.WDCHK = 0;

EDIS;

NOP;

NOP;

NOP;

 

Kind regards,

Giuseppe

  • Hi,

    I do not see any condition to write the WDCHK bit in this code. In such case it'll be executed every time after reset hence device will be reset again. Right?

    If that is taken care then please make sure you have EMULATION BOOT set correctly if CCS is connected else after reset device will not boot as expected. Other thing to note is on WD reset, all the RAMs get cleared on this device so if you have any dependency on RAM content, that will not work after WD reset.

    Regards,

    Vivek Singh