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.

CCS/TMS320F28379S: WDCR Register Reset Locking Microprocessor

Part Number: TMS320F28379S


Tool/software: Code Composer Studio

Hey,

I am currently working on a reset function for the TMS320F28379S. I have seen that the following lines of code will trigger the reset:

WdRegs.WDCR.all = 0x28;
WdRegs.WDCR.all = 0x20;

This function has been set to happen when a certain I2C command is recognized by the microprocessor.

When sending this command the first time, the microprocessor will reset, initialize, and go in its main loop. However, when the command is sent a second time, the microprocessor appears to lock up in assembly somewhere I cannot see.

Looking at the WdRegs, everything appears fine on the first reset. But while locked up in the second reset, WdRegs.WDCR reads 0x00C0. I never write to that reserved bit on the register, so why is this microprocessor locked in this state?

  • Hi,

    Looking at the WdRegs, everything appears fine on the first reset. But while locked up in the second reset, WdRegs.WDCR reads 0x00C0. I never write to that reserved bit on the register, so why is this microprocessor locked in this state?

    Bit 7 is "ReadOnly" bit so you can ignore it. It is don't care.

    I am assuming you are booting to Flash after WD reset. Right? If yes then please make sure you are not loading any code/data in RAM and make sure you have set the emulation boot to boot from flash at 0xD00 location.

    Regards,

    Vivek Singh

  • After selecting the Emulation Boot Mode Select in Scripts to EMU_BOOT_FLASH, the reset function call I have seems to work smoothly after several attempts triggered by the I2C command. Thank you!