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.

CCS/MSP432P401R: Does the debugger fail if the clock is set to 48MHz on the "LaunchPad" dev kit?

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Sure looks like it.  I see the debugger skipping when it should be single stepping, then jumping to random places in the code.  I was sondering why this kit defaults to 3 MHz.

Has anyone else seen this problem?

  • James,

     No, the debugger won't fail if the clock is set to 48MHz. It's possible the skipping is due to code optimization, but this wouldn't account for random jumping.  The kit defaults to 3MHz I think largely for historical reasons with other MSP430 examples, and to better illustrate low power operation since you don't need to start the high-frequency oscillator if you're running at 3MHz.  For a known-good high-speed test, I would run the cs_hfxt_start example in the TI Resource Explorer.

    -Bob L.

  • Per the example Bob has referenced, you cannot simply set the device to operate at 48Mhz.  You need to adjust the core voltage and the flash wait states accordingly.  

        /* Starting HFXT in non-bypass mode without a timeout. Before we start
         * we have to change VCORE to 1 to support the 48MHz frequency */
        MAP_PCM_setCoreVoltageLevel(PCM_VCORE1);
        MAP_FlashCtl_setWaitState(FLASH_BANK0, 1);
        MAP_FlashCtl_setWaitState(FLASH_BANK1, 1);
        CS_startHFXT(false);

    Regards,

    Chris

**Attention** This is a public forum