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/TMS320F28377S: TMS320F28377S

Part Number: TMS320F28377S
Other Parts Discussed in Thread: C2000WARE, TMS320F28379D

Tool/software: Code Composer Studio

HI,

Intro:

I am using TMS320F28377S microcontroller. I want to configure CPU Clock Source as PLL output. So, I am using TI's SysCtl_setClock() function which is readily available from TI in sysctl.c.

Issue:

Trying to service watchdog inside loop is causing Reset . 

I want to Service watchdog inside while loop in SysCtl_setClock(), So i am uncommenting SysCtl_serviceWatchdog() line( which was commented by TI). But this is causing me Reset. Code works fine if that particular line is commented 

When i execute it stops and shows following error.

More Detail:

Code implementation 

main(){

1.  Initialize non windowed watchdog (working fine as far as i know) - Enabled state

2. Calling SysCtl_setClock with parameters.

}

WatchDog Implementation:

I need to have watchdog enabled before initializing PLL. Please let me know what is causing the issue

  • Hi Govardhan,

    The error you get after CPU halts is because after reset BOOTROM is getting executed and if emulation boot mode is not set to boot to flash then by default it'll be wait boot which will halt the CPU inside BOOTROM. Since there is no BOOTROM symbols, it is giving the information. It is really not an error.

    We are looking into watchdog reset issue and get back to you by early next week.

    Regards,

    Vivek Singh

  • Govardhan,

    I do not see any issue with "SysCtl_serviceWatchdog();" code. You can refer example "driverlib\f2837xs\examples\cpu1\watchdog" in C2000Ware and also could try to run the same and see if it works fine.

    Regards,

    Vivek Singh

  • Hi,

    Enabling "SysCtl_serviceWatchdog();" in  while() loop in SysCtl_setClock()  is causing BootROM error.

    I tried same code in other launch pad TMS320F28379D with slight modification in linker file. It is working fine

    For TMS320F28377S i am using BlackHawk Debugger and for TMS320F28379D using XDS100V2 Builtin Debugger.

    To try watchdog example, when i try to import project I am getting message compiler version is not installed.

  • Hi,

    Enabling "SysCtl_serviceWatchdog();" in  while() loop in SysCtl_setClock()  is causing BootROM error.

    What do you mean by BootROM error ? Do you have snapshot of the error.

    To try watchdog example, when i try to import project I am getting message compiler version is not installed.

    Regards,

    Vivek Singh