请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F280039C 主题中讨论的其他器件:SysConfig
您好、专家!
我已经配置了一个由 ADC 中断触发的 CLA 任务。
ADC 中断正常运行、
但是、代码在 CLA 任务的第一行停止、恢复后不执行任务内的代码。
作为参考、我在 CLA 任务内递增 U16变量、但其值始终保持为0。
我的 CLA 配置如下:
CLA 初始化:
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 任务:
volatile uint16_t claTestVar_u16; __attribute__((interrupt)) void Cla1Task1() { claTestVar_u16++; }