S32K Trigger Interrupt via Software

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

S32K Trigger Interrupt via Software

786 Views
Jeniffer
Contributor I

Hello All,

I am using S32K116 micro controller. I am using Cortex M0. I am looking in to documentation and can not find how to: trigger interrupt via software

I want trigger interrupt handler function but there is not NVIC register for this work.

For example, can I trigger the LPSPI0_IRQHandlerfunction on my own request? or LPUART0_RxTx_IRQHandler.

 

Cortex M4 has NVIC->STIR and SCB->CCR for that.

  • SCB->CCR - USERSETMPEND[1:1]: Controls unprivileged access to STIR. Should be 1 to trigger interrupt in unprivileged mode.
  • NVIC->STIR - INTID[8:0]: Triggers the interrupt of the written IRQ number.

 

Tags (3)
0 Kudos
Reply
2 Replies

769 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Jeniffer,

The core of S32K11x is ARM Cortex M0+, so have a look at NVIC_ISPR in Cortex-M0+ Devices Generic User Guide.

Best Regards,
Robin

0 Kudos
Reply

760 Views
Jeniffer
Contributor I

Thanks @Robin_Shen 

0 Kudos
Reply