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.

TMS320F28379D: Count cpu resets and sources

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Dear TI,

I'm encountering multiple issues while attempting to configure the PLL clock for my project . I'm using the TI function to set the configuration.

Specifically, the following line in the IniSysPll() that check the overflow of timers (1&2), the execution is stoped in this line cause timer 2 is not runing

        while((s_sDrvTIM_CoreCpuTimer2Regs.TCR.bit.TIF == 0) && (s_sDrvTIM_CoreCpuTimer1Regs.TCR.bit.TIF == 0));

I'm uncertain if my DSP is resetting each time, and I'm struggling to comprehend why my timer 2 isn't counting even when I'm using the identical code provided by TI.

Is there a register that tracks the number of resets caused by the watchdog? How can we verify the source of the reset if it occurs?

I coudl notice aslo that some EALLOW are not followed by EDIS in this funciton is it normale?

Thank you in advance.

Sincerely, Tarik

  • Tarik,

                    I suggest you switch to Driverlib. Support for bit-fields is deprecated and only Driverlib is updated and maintained (for bug fixes etc). In any case, all C2000ware functions are tested before release. If a (modified) function does not produce the intended result, it is likely that there is some issue with your modification (or some hardware issue).

    Is there a register that tracks the number of resets caused by the watchdog?

    No.

    How can we verify the source of the reset if it occurs?

    Using the RESC register.

    I coudl notice aslo that some EALLOW are not followed by EDIS in this funciton is it normale?

    Generally, EALLOW and EDIS instructions are always used in pairs in C2000ware functions. Regardless, absence of EDIS should not cause a problem during debug.

  • Hello Hareesh Janakiraman,

    it is likely that there is some issue with your modification (or some hardware issue).

    I have personally tested my time TI examples and can confirm that they function correctly.

    I want to clarify that I'm not implying that TI has any bugs, but I am seeking assistance to identify why my timer2 is not operational. I am confident that the issue lies within my code because I am attempting to run a project that was originally designed for the 280049 on a 28377D DSP. This discrepancy could be attributed to a variety of factors.