Other Parts Discussed in Thread: TMS470R1B1M
I've modified project from DSP2833x samples and get this error.
void IoSysClockInitialize()
{
// PLL
//------------------------------------------------------------
if( SysCtrlRegs.PLLSTS.bit.MCLKSTS != 0) asm ("ESTOP0");
if( SysCtrlRegs.PLLSTS.bit.DIVSEL != 0) { EALLOW; SysCtrlRegs.PLLSTS.bit.DIVSEL = 0; EDIS; }
EALLOW;
SysCtrlRegs.PLLSTS.bit.MCLKOFF = 1;
SysCtrlRegs.PLLCR.bit.DIV = PLL_DIV;
EDIS;
while(SysCtrlRegs.PLLSTS.bit.PLLLOCKS != 1) ;
EALLOW;
SysCtrlRegs.PLLSTS.bit.MCLKOFF = 0;
EDIS;
EALLOW;
SysCtrlRegs.PLLSTS.bit.DIVSEL = 2;
EDIS;
}
The compiler gives this error on all strings related to 2-bit declared field SysCtrlRegs.PLLSTS.bit.DIVSEL. All other fields are OK.
The error occurs in case of removal this code out of /DSP2833x_common/source/DSP2833x_SysCtrl.c.
The header file with definition of structure PLLSTS_BITS, union PLLSTS_REG and declaration of extern volatile struct SYS_CTRL_REGS SysCtrlRegs; is included to the compiled file.
The file with implementation and section mapping of all registers also compiled.