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.

LAUNCHXL-F28379D: Stuck inside InitSysCtrl() --> . . --> . . -->InitSysPll() function

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Hello there,

I have been experience this strange issue lately. This is related to InitSysCtrl() function specifically InitSysPll() function.

I have imported some examples which has InitSysCtrl() function in the main() and they work fine but when I create my own empty ccs project and added all those path for files and libraries, I stuck at the while() loop in InitSysPll() function. see below:

I checked the register value of ClkCfgRegs.SYSPLLSTS.bit.LOCKS, it shows '1' it still doesn't get out and hangs in there.

Thanks,

Sumit

  • Hello Sumit,

    Did you create your empty project using the "empty driverlib" project available in C2000ware? Can you confirm what reference clock source you are using in your project - INTOSC, or external crystal? The configured PLL settings would be invalid for an external crystal - it appears to expect a 10MHz OSCCLK.

    Best regards,
    Ibukun

  • Hello lbukun,

    I used the "empty drivelib project" this time and issue is still there. It looks like it uses the external crystal.

    thanks,

  • Hello Sumit,

    One thing to check: Make sure you have F2837xD_Headers_nonBIOS.cmd in your project. You can find this file in <c2000ware_install_dir>\device_support\f2837xd\headers\cmd. We've seen issues before where the address of the register is incorrectly defined because the wrong cmd file is referenced.

    Best regards,
    Ibukun

  • Ibukun,

    Adding F2837xD_Headers_nonBIOS_cpu1.cmd file does let it pass through InitSysCtrl().

    Thanks,