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.
Hi ,
I want to read the adc data in the cla task but i am not able to see any data whicle debugging the cla task. Can you please help me to read the data of adc in cla task/
currently what i am doing
#pragma DATA_SECTION(Adc_A0Data,"Cla1ToCpuMsgRAM");
uint16_t AdcA0_Data[ADC_BUF_LEN];
#pragma DATA_SECTION(Adc_A1Data,"Cla1ToCpuMsgRAM");
uint16_t AdcA1_Data[ADC_BUF_LEN];
#pragma DATA_SECTION(buffCount,"Cla1ToCpuMsgRAM");
uint16_t buffCount=0;
__interrupt void Cla1Task1 ( void )
{
uint16_t count = 0;
uint16_t AdcBuf[13];
__mdebugstop();
AdcA0_Data[buffCount] = AdcaResultRegs.ADCRESULT0;
AdcA1_Data[buffCount] = AdcaResultRegs.ADCRESULT1;
buffCount++;
__mdebugstop();
}
but no data is captured from adc. kindly help.
Hi,
That seems to be the right approach. Let me try to reproduce the issue at my end and get back to you
Regards,
Veena
Hi,
Are you able to view the results register content using the Registers view in CCS?
Regards,
Veena
In normal operation we can see the ADC data in the result registers.
But when we came into the debug mode of cla task we dont see any result in the register of the result and buffer.
Hi,
Normal operation means i am debugging the main mcu not cla , when i ma in cla debugging then i am not able to see the data in adc result, but in main mcu debugging the data is present.
I am closing this thread since the issue has been resolved offline
Regards,
Veena