Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hi,
I am having problems configuring the PLL clock on our SYSBIOS project so that the settings persist on the board.
Currently I'm using the 280049C control card.
I use the following settings in our non-sysbios project:
InitSysPll(XTAL_OSC, IMULT_10, FMULT_0, PLLCLK_BY_2);
I had tried using the .cfg settings to set this, which appeared to work at first but became eratic after cleaning/rebuilding the project, power cycling the board, etc.
Basically an LED task that would run at 3s would start taking 5 to 20 times that timeframe to act.
After reading that the PLL shouldn't be configured via SYSBIOS, I tried adding this in a reset function, but with no luck as the code would go off into the reset /Boot Rom and get stuck.
Can someone identify the settings that I should be making to get this to work?
In my main.c I have this function:
void resetFxn(void) { InitSysPll(XTAL_OSC, IMULT_10, FMULT_0, PLLCLK_BY_2); }
And in my .cfg
Startup.resetFxn = "&resetFxn";
Also I tried
Reset = xdc.useModule('xdc.runtime.Reset'); Reset.fxns[Reset.fxns.length++] = '&resetFxn';
But this also gets stuck in a similar memory space (Boot Rom between 0x3F0000 and 0x3FFFFF).
My .cmd file has the following related settings
MEMORY { PAGE 0 : RESET : origin = 0x3FFFC0, length = 0x000002 VECTORS : origin = 0x3FFFC2, length = 0x00003E } SECTIONS { .reset : > RESET PAGE = 0, TYPE = DSECT }
Thanks for your help,
-Wes