MSP430FR6043: setup FR6043 clock

Part Number: MSP430FR6043

Tool/software:

Hello I try to make the FR6043 running at 8MHz. 

I have downloaded the example "cs_ex1_DCOSetup". By reading the code, I assume that the 8MHz will output from pin P3.4. But when I probed it, there is nothing on the pin. 

The program is very simple, I paste them below.

Thanks!

Wen

 

//******************************************************************************
// MSP430FR59xx Demo - Configure MCLK for 8MHz operation
//
// Description: Configure SMCLK = MCLK = 8MHz
//
// MSP430FR59x
// ---------------
// /|\| |
// | | |
// --|RST |
// | |
// | |
// | P3.4 |---> SMCLK = MCLK = 8MHz
//******************************************************************************
#include "driverlib.h"

void main(void)
{
//Stop WDT
WDT_A_hold(WDT_A_BASE);

//Set DCO Frequency to 8MHz
CS_setDCOFreq(CS_DCORSEL_0,CS_DCOFSEL_6);

//configure MCLK, SMCLK to be source by DCOCLK
CS_initClockSignal(CS_SMCLK,CS_DCOCLK_SELECT,CS_CLOCK_DIVIDER_1);
CS_initClockSignal(CS_MCLK,CS_DCOCLK_SELECT,CS_CLOCK_DIVIDER_1);

// output SMCLK
GPIO_setOutputLowOnPin(
GPIO_PORT_P3,
GPIO_PIN4
);

GPIO_setAsPeripheralModuleFunctionOutputPin(
GPIO_PORT_P3,
GPIO_PIN4,
GPIO_TERNARY_MODULE_FUNCTION
);

/*
* Disable the GPIO power-on default high-impedance mode to activate
* previously configured port settings
*/
PMM_unlockLPM5();

while(1);
}

**Attention** This is a public forum