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.

TMS320F28388S: Running from FLASH & setting OSCCLKSRCSEL to non-zero value crashes CPU

Part Number: TMS320F28388S
Other Parts Discussed in Thread: TMS320F28379D, TMS320F28388D, C2000WARE

Tool/software:

I have a project that runs from RAM on the TMS320F28379D & TMS320F28388D eval boards when using the XDS220 ISO debugger.

Trying the same project & updating the link.cmd for FLASH, project will not run.  I crashes the DSP.

Specifically, the following code crashes the DSP.

ClkCfgRegs.CLKSRCCTL1.B.XTALOFF = 0; /* Turn on XTALOSC */
SYSCTRL_CLKSRCCTL1_DELAY;
ClkCfgRegs.CLKSRCCTL1.B.OSCCLKSRCSEL = 1; /* Clk Src = XTAL */

These lines are part of the CLK initialization process.

Any help would be greatly appreciated.