How to set Interrupt on M4 Core?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set Interrupt on M4 Core?

Jump to solution
590 Views
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

Labels (2)
1 Solution
390 Views
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

View solution in original post

1 Reply
391 Views
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