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.

PLL limp mode

Other Parts Discussed in Thread: TMS320F28069, CONTROLSUITE

Hi 

I'm just starting with the MCU's of TI and got some problems I wasn't able to solve. 

First of all, I'm using a TMS320F28069 and designed my own Board for testing. It's basically just a copy of the Control Stick without the Debugger. 

I'm able to connect to the Target with my XDS100v2 and start debugging. But for some reasons, when it reaches the InitSysCtrl(); it stops working as it should. First it stops at the following part: 

void InitPll(Uint16 val, Uint16 divsel)
{
   volatile Uint16 iVol;

   // Make sure the PLL is not running in limp mode
   if (SysCtrlRegs.PLLSTS.bit.MCLKSTS != 0)
   {
      EALLOW;
      // OSCCLKSRC1 failure detected. PLL running in limp mode.
      // Re-enable missing clock logic.
      SysCtrlRegs.PLLSTS.bit.MCLKCLR = 1;
      EDIS;
      // Replace this line with a call to an appropriate
      // SystemShutdown(); function.
     __asm("        ESTOP0");     // Uncomment for debugging purposes     <= HERE 
   }

I went through some datasheets and guides, but could only find out, that it get's into limp mode if the external OSC is not working as it should. 

In my case I don't even have an external OSC and I'm just using the Internal osc 1. (Calling IntOsc1Sel() before). 

Thanks for any reply

Fabian

  • Fabian,
    This appears to be a C2000 question. I'll move it to the correct forum.
  • Hi Fabian,

    What happens if you run one of the F2806x examples in controlSUITE directly (like timed_led_blink)?  Does it also get caught in InitPll(...)?


    Thank you,
    Brett

  • Hi Brett, 

    If I import does examples from the control suite directly and change the configurations to work with my XDS, it's able to pass this section (after a few errors triggered by xdais). 

    I didn't thought about it in the first place, because I got the code from a college and it works on his stuff. 

    Thanks for the tip. Right now I use a example project and change the code. 

    After all I am not able to set up a new project and even if I compare the two configurations and properties of the project and change it on my new one, I am not able to get past this section. 

    Fabian

  • Hi Fabian,

    If the college's code is designed to run on their hardware, perhaps some changes were made such that that hardware and software work together.  If their code is designed to run on the controlSTICK than I am not sure.

    Regardless, I am glad you have gotten a working setup.  :)

    I typically do not create a new project.  Instead I typically copy-paste an existing example folder and then import/modify the copy, as desired. 

    The C2000 group has been working to make the creation of a project from scratch easier with C2000 devices, but it can still be tricky - we likely have a bit more work to do.

    Hopefully this helps!


    Thank you,
    Brett