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-F280049C: PLL is not locking while doing initialisation process when running from flash memory with DCL and sfra libraries included

Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: SFRA, C2000WARE

Tool/software:

Hello,

I took the example project BOOSTXL-BUCKCONV and trying to understand how the logic has been implemented. I am implementing my own controller and so created a new project by taking this example project as reference.

I have configured adc ports and can read out the data from peripherals. Now I included DCL and sfra libraries in include paths of both compiler and linker

and also .cmd file which basically runs from flash in the provided example. Now when I am trying to debug by loading the program on flash memory nothing really happens. When I pause the debugging then the control was stuck inside the while loop which was trying to do PLL lock.

I dont understand why this happens when I was trying to debug on FLASH but no issue happens when I am debugging on RAM memory.

  • Hi Mohan,

    Do you have FLASH added in your predefined symbols? Typically this is automatically included when you use the flash build configurations provided in our standard C2000Ware examples, where you wouldn't usually need to add in the flash linker command file. FLASH predefined symbol would indicate to the device.h initialization script to initialize the necessary hooks to enable running from flash

    Regards,

    Peter

  • Hello Peter,

    I figured it out later but as u suggested I missed to include FLASH in predefined symbols, It works now. Thanks alot for your response.