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.

Bios6 clock module for the Delfino

I am using C28343 kit. I have chosen control28346 as a platform. I cannot run at 300 Mhz so I inform the bios via my .cfg file that the cpu frequency is 200 Mhz. Here are the two line in the *.cfg file of my project.

BIOS.cpuFreq.lo = 200000000;

Clock.tickPeriod = 10;

When I toggle a GPIO using the clock module I clearly see that the clock module is still taking 300 Mhz as the frequency because I see the square wave with 15 uSec ON and OFF time instead of 10.

I have taken care of the PLL by extra hardware code so that it runs at 200 Mhz.

What am I doing wrong ?

  • Sunil,

    You're not doing anything wrong. Your expectations are perfectly reasonable. You've come across a bug in BIOS.

    It turns out that when the timer used by the Clock module is configured, the platform's frequency is used to determine the corresponding timer period rather than the configured BIOS.cpuFreq value. I filed SDOCM00077418 bug to address this deficiency.

    Luckily there is a simple workaround for this problem.

    If you add a call to Clock_tickReconfig() to your main() function, the configured BIOS.cpuFreq will be used to recalculate the timer period.

    Alan DeMars

  • Yes the bug fix works. Thanks