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.

[参考译文] 66AK2L06:K2L ARM 中断问题

Guru**** 2560390 points


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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/921147/66ak2l06-k2l-arm-interrupt-issue

器件型号:66AK2L06

已在 K2L ARM 内核上配置 UART RX 中断。 在 UART Rx 中断上设置 IPR 寄存器(中断挂起寄存器),但 IAR 寄存器(中断活动寄存器)未设置,即内核未接收到中断。  

纵横制寄存器不是 K2L 中 ARM 内核的 pat。

代码部分在此处包含:

int main (空)

int ReadData =0;


platform_UART_init();
UartINTTCConfigure();
IntEnableSecureMode (277);
UartWriteData (0x32);

while (1);

静态空 UartINTCConfigure (空)


intc_intdisable();

/*初始化中断控制器。 *
INTC_Init();

/*启用中断*/
INTC_IntEnable (0);

/*注册中断服务例程(ISR)。 *

INTC_IntRegister (277、(IntFuncPtr) UARTIsr、NULL);

/*在 INTC 中设置 UART 中断的优先级。 *

INTC_IntPrioritySet (277、2、0);

INTC_SystemEnable (277);