How to set Interrupt on M4 Core?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to set Interrupt on M4 Core?

跳至解决方案
1,153 次查看
Nouchi
Senior Contributor II

Hello,

I'm trying to set up FTM interrupt from M4 core with MQX4.0.2, I use _int_install_isr, FTM Chan interrupt flags is set, but never branch to ISR function.

Something should be enabled somewhere, but don't know what.

Emmanuel

标签 (2)
1 解答
953 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

This is a code snippet that shows how to enable an ISR. You can take a look at the BSP source code and see how they are handled in the interrupt drivers.

_int_install_isr(sci_init_ptr->ERR_VECTOR, _kuart_int_err_isr, int_io_dev_ptr);
_bsp_int_init(sci_init_ptr->ERR_VECTOR, sci_init_ptr->ERR_PRIORITY, 0, TRUE);

I hope this helps,

Alejandro

在原帖中查看解决方案

1 回复
954 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

This is a code snippet that shows how to enable an ISR. You can take a look at the BSP source code and see how they are handled in the interrupt drivers.

_int_install_isr(sci_init_ptr->ERR_VECTOR, _kuart_int_err_isr, int_io_dev_ptr);
_bsp_int_init(sci_init_ptr->ERR_VECTOR, sci_init_ptr->ERR_PRIORITY, 0, TRUE);

I hope this helps,

Alejandro