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/C2000-F28004X-POWER-EST-CALC: C280049M CLA access to timer 0

Part Number: C2000-F28004X-POWER-EST-CALC

Tool/software: Code Composer Studio

I am using C280049M and got some stuffs running on CPU and have CLAtask 1 running .

I have a timer (Timer0 ) configured to run free running @ 10 ns .

I would like to timestamp the CLA task run time by accessing the TIM of the timer 0. but i am not able to any values from the register access. 

Could someone please help me to do this  ?  Can CLA access Timer0 ?? 

__attribute__((interrupt)) void Cla1Task1 (void)

{

 

start_time = (*((volatile uint32_t *)(0x00000C00U)));

/*Main control loop goes here */

end_time = (*((volatile uint32_t *)(0x00000C00U)));

runtime = (start_time-end_time)*10;


}