Other Parts Discussed in Thread: SYSCONFIG
Hello experts,
I have configured a CLA task that is triggered by ADC interrupt.
The ADC Interrupt is wotking fine,
But, the code stops at the first line of cla task and after resuming, the code inside the task is not executed.
For reference, I am incrementing a u16 variable inside cla task but its value stays 0 all the time.
My cla configuration is as follows:
CLA Init:
void CLA_init() { #ifdef _FLASH #ifndef CMDTOOL // Linker command tool is not used extern uint32_t Cla1ProgRunStart, Cla1ProgLoadStart, Cla1ProgLoadSize; extern uint32_t Cla1ConstRunStart, Cla1ConstLoadStart, Cla1ConstLoadSize; // // Copy the program and constants from FLASH to RAM before configuring // the CLA // memcpy((uint32_t *)&Cla1ProgRunStart, (uint32_t *)&Cla1ProgLoadStart, (uint32_t)&Cla1ProgLoadSize); memcpy((uint32_t *)&Cla1ConstRunStart, (uint32_t *)&Cla1ConstLoadStart, (uint32_t)&Cla1ConstLoadSize ); #endif //CMDTOOL #endif //_FLASH cla1_init(); }
CLA Task:
volatile uint16_t claTestVar_u16; __attribute__((interrupt)) void Cla1Task1() { claTestVar_u16++; }