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;
}