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.

MSP430F6779A: Watchdog reset issue

Part Number: MSP430F6779A

Tool/software:

Hi,

I am using msp430f6779A controller and using emlib and code generated using metering GUI TI tool. All clock initializations are same as the generated code.When i do watchdog reset my controller doesn't power ON. i have tested by turning a pin high before all initializations to test if the code is getting stuck in the while loop of clock initialization.Sometimes controller power's On but 10Bit ADC(this condition was when clock to adc 10 was ACLK but 10 bit adc started working when i switched the clock to MCLK) and 24 biut sigma delta ADC doesn't work but all these issues get resolved if i give a power on reset. Kindly help. 

I am attaching code for clock initialization(there is no external cap on the 32.7698Khz crystal) and 10 bit adc initialization.

Clock Initialization:-

mclkFreq = 25165824;

static void hal_system_ClockInit(uint32_t mclkFreq)
{

    PMM_setVCore(PMM_CORE_LEVEL_3);

    UCS_turnOnLFXT1(UCS_XT1_DRIVE_0, UCS_XCAP_0);

    UCS_initClockSignal(
       UCS_FLLREF,
       UCS_XT1CLK_SELECT,
       UCS_CLOCK_DIVIDER_1);
    UCS_initClockSignal(
       UCS_ACLK,
       UCS_XT1CLK_SELECT,
       UCS_CLOCK_DIVIDER_1);

    UCS_initFLLSettle(
        mclkFreq/1000,
        mclkFreq/32768);
    }

ADC 10  initialization:-

 ADC10_A_init(ADC10_A_BASE,
                  ADC10_A_SAMPLEHOLDSOURCE_SC,
                  ADC10_A_CLOCKSOURCE_MCLK,
         ADC10_A_CLOCKDIVIDER_2);

     ADC10_A_enable(ADC10_A_BASE);

     /*
      * Base Address for the ADC10_A Module
      * Sample/hold for 16 clock cycles
      * Enable Multiple Sampling
      */
     ADC10_A_setupSamplingTimer(ADC10_A_BASE,
         ADC10_A_CYCLEHOLD_16_CYCLES,
         ADC10_A_MULTIPLESAMPLESENABLE);

     //Configure Memory Buffer
     /*
      * Base Address for the ADC10_A Module
      * Use input A3
      * Use positive reference of AVcc
      * Use negative reference of AVss
      */
     ADC10_A_setResolution(ADC10_A_BASE,
         ADC10_A_RESOLUTION_10BIT);
     ADC10_A_configureMemory(ADC10_A_BASE,
         ADC10_A_INPUT_A3,
         ADC10_A_VREFPOS_AVCC,
         ADC10_A_VREFNEG_AVSS);

**Attention** This is a public forum