Hi,
How to use internal RC be main OSC in TI-RTOS on M3.
Now I only see this
/* Set the default CPU frequency */
BIOS.cpuFreq.lo = 48000000;
on my xxx.cfg and use ext OSC now.
But I want to use internal RC OSC now.
Thanks
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.
Hi,
How to use internal RC be main OSC in TI-RTOS on M3.
Now I only see this
/* Set the default CPU frequency */
BIOS.cpuFreq.lo = 48000000;
on my xxx.cfg and use ext OSC now.
But I want to use internal RC OSC now.
Thanks
Hi Vincent,
Which hardware platform are you using? The means of configuring this will depend on that.
In any case, you would need to use the appropriate "Boot" module to configure such settings.
Assuming that the cortex M3 "lm3init" module is what corresponds to your device, you would use the following configuration code:
var Boot = xdc.useModule(‘ti.catalog.arm.cortexm3/lm3init’);
Boot.configureClock = true;
// use the internal oscillator
Boot.oscSrc = Boot.OSCSRC_30;
// set the divider as appropriate:
Boot.sysClockDiv = Boot.SYSDIV_XXX;
You should choose the value of sysClockDiv depending on whether or not you want to bypass the PLL.
If you do not want to bypass the PLL (Boot.pllBypass = false), then the frequency will be computed by dividing 200MHz by the value of sysClockDiv.
If you do bypass the PLL (Boot.pllBypass = true), then the frequency will be computed by dividing 30KHz by the value of sysClockDiv.
Steve
Hi Steve,
The Chip that I use it now still under NDA, but I try this fun follow what you post.
Thanks