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.

[参考译文] TMS320F28379D:向 Matlab Simulink 模型添加 CPU Timer1中断

Guru**** 2224960 points
Other Parts Discussed in Thread: C2000WARE
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1185037/tms320f28379d-adding-cpu-timer1-interrupt-to-matlab-simulink-model

器件型号:TMS320F28379D
主题中讨论的其他器件:C2000WARE

您好!  

我有一个用于 CAN 和 IPC 通信的有效 Matlab Simulink 模型、使用嵌入式代码、我设法为 CCS 环境编译和构建 C 代码。 到目前为止都很好。 然后、我添加了 CPU 定时器1中断例程(从 TI CCS 代码示例复制)。 已正确配置 CPU Timer1参数(仅从另一个 CCS 项目中验证、不包含 Matlab 模型中的任何组件)。 我注意到、在与 Matlab Simulink 模型集成的 CCS 工程中、无法执行 CPU Timer1中断例程。 每次、程序运行如下语句来启用 CPU Timer1中断  

   IER |= M_INT13;   

程序转到: 非法中断处理程序,并且没有执行为 CPU Timer1定义的中断例程。  

为什么会发生这种情况?  

请告知补救措施。  

谢谢你。