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.

SYS/BIOS 6.32 CPU frequency configuration for MSP430F5418A

Other Parts Discussed in Thread: SYSBIOS

 The CPU frequency for F5418A after reset is at 8192000 Hz. In my application, I initialize the CPU clock to 17203200 Hz after it enters main(). Should I set the Platform settings -->CPU clock frequency (the lower right box in the figure below) to 8192000 or 17203200? Thanks.

Chun

  • Hi Chun,

    The value of 8192000 Hz is the default as defined for that platform.  Is your processor running at 17203200 Hz?  If so, you should change this value to match the actual speed.

    Steve

  • Steve, thanks.

    Chun

  • Chun,

    If you are just changing MCLK in main(), then that is the right thing to do to tell SYS/BIOS modules the new CPU rate. 

    If you are also changing SMCK and ACLK, then there is another config step that you can use to register those changes.  There is a MSP430-specific module called “ClockFreqs”.  You can add the following text to your application .cfg file:

    var ClockFreqs = xdc.useModule('ti.sysbios.family.msp430.ClockFreqs');
     
    If you then re-open the configuration file in the graphical viewer (XGCONF), over on the right you’ll see the “ClockFreqs” module in the list of modules.  You can then specify new SMCLK and ACLK values in that configuration screen, which will result in text additions to the .cfg file.  (There is a constraint that if you specify one of these frequencies, you need to specify both, otherwise a build error will be thrown.)  You can also right click on the module and select “Help” to get more info on this module.

    Regards,
    Scott