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/LAUNCHXL2-TMS57012: On watching window the ADC variable is not updating

Part Number: LAUNCHXL2-TMS57012
Other Parts Discussed in Thread: TMS570LS1224, HALCOGEN

Tool/software: Code Composer Studio

Hello,

I am working with TMS570LS1224 Hercules series MCU.

I was successful in reading the ADC values and continuously updating the watch window's ADC variable using the examples given in HALCOGEN GUI help section.

The working program is:

adcInit();

adcData_t adc_data;
adcData_t *adc_data_ptr = &adc_data;

adcStartConversion(adcREG1, adcGROUP1);


while(!adcIsConversionComplete(adcREG1, adcGROUP1));
adcGetData(adcREG1, adcGROUP1,adc_data_ptr);
value = (unsigned int)adc_data_ptr->value;

And the changed program is:

adcInit();

adcData_t adc_data;
adcData_t *adc_data_ptr = &adc_data;

adcStartConversion(adcREG1, adcGROUP1);

if(adcIsConversionComplete(adcREG1, adcGROUP1)){
adcGetData(adcREG1, adcGROUP1,adc_data_ptr);
value = (unsigned int)adc_data_ptr->value;
}

Now after changed program is run without breakpoint and keeping the "continuous refresh" on the variable does not update.

When I Debug using the breakpoint and step over the program lines one by one then the variable is updating.

Is this the problem with watch window update rate or something.

Please hep me with the solution.