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.

MSP430F5259 - How to go above 16 MHz ?

Other Parts Discussed in Thread: MSP430F5259, SYSBIOS

Hello, 

I'm trying to go use max frequency available for MSP430F5259 which is 25MHz (working from DVCC=3.3V)

I'm setting UCS_initFLLSettle(MCLK_DESIRED_FREQUENCY_IN_KHZ, MCLK_FLLREF_RATIO) correctly as well as ClockFreq module.

Unfortunately I can not go above 16MHz. The application seem to hang...

What else need to be initialized  in order to go above 16 MHZ ? Is it Power manager module / PM driver ? How ?

Any advise will be highly appreciated.

Thanks.

  • Which version of BIOS/TI-RTOS are you using?

    Alan
  • Are you using the Boot module to configure the DCO (ie is Boot.configureDCO set to true)?

    If so, can you provide the settings you've configured for the Boot on ClockFreq modules from your .cfg file?

    Alan
  • Hello Alan, 

    Thanks for your prompt response.

    At the moment I initialize DCO myself (no boot module). It fails when I set MCLK_DESIRED_FREQUENCY_IN_KHZ  to 25000

    #define MCLK_DESIRED_FREQUENCY_IN_KHZ  	16384		// 16.384 MHz
    #define MCLK_FLLREF_RATIO       (UInt16)( (UInt32)MCLK_DESIRED_FREQUENCY_IN_KHZ *(UInt32)1000 / (UInt32)UCS_REFOCLK_FREQUENCY )  
    
    ...
    
    UCS_initClockSignal(UCS_FLLREF, UCS_REFOCLK_SELECT, UCS_CLOCK_DIVIDER_1);
    
    UCS_initFLLSettle(MCLK_DESIRED_FREQUENCY_IN_KHZ, MCLK_FLLREF_RATIO);
    // MCLK & SMCLK default to DCO. No need to initialize
    // UCS_initClockSignal(UCS_MCLK, UCS_DCOCLK_SELECT, UCS_CLOCK_DIVIDER_1);
    // UCS_initClockSignal(UCS_SMCLK, UCS_DCOCLK_SELECT, UCS_CLOCK_DIVIDER_1);	
    
    UCS_turnOnSMCLK();

    When trying to include boot module (bios_6_41_04_54\ti\catalog\msp430\init\boot) I get the following message :

    "Sorry, I'm having problems loading the requested page. Please be sure you have the latest software updates installed in case this problem has already been fixed."

    I'm using CCS 6.1.1. The installed components attached in the screen cap

      

    auto → iw
    תדר הרצוי
  • Please ignore the advice I gave to use the Boot module.

    I dug a little deeper into this. In order to go 25MHz you must boost the core voltage up to 3V first. Out of reset, the device appears to be configured for 1.8V core voltage. I don't know which driver library API to use for this but it should be fairly straight forward to find.

    Also, you need to inform BIOS that you are running at 25MHz by adding the following to your .cfg file:

    var BIOS = xdc.useModule('ti.sysbios.BIOS');
    BIOS.cpuFreq.lo = 25000000;
    BIOS.cpuFreq.hi = 0;

    Hope this helps.

    Alan