i.MX RT1052 - Will we get another nested ISR within an ISR?

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

i.MX RT1052 - Will we get another nested ISR within an ISR?

跳至解决方案
2,667 次查看
Cindy
Contributor III

Hi,

 

My question is will we ever get a nested ISR within an IRQ Handler?

In other words, whenever an interrupt is triggered, its ISR(interrupt service routine) will be called. Let say this IRQ handler is GPT2_IRQHandler. While processing this ISR, will another interrupt of higher priority is being triggered and its ISR being called being exiting GPT2_IRQHandler?

 

Thank you.

 

Best Regards,

Cindy

标记 (2)
0 项奖励
回复
1 解答
2,660 次查看
ErichStyger
Specialist I

Hi @Cindy ,

short answer: yes.

longer answer: see https://mcuoneclipse.com/tag/nvic/

The RT1052 is an ARM Cortex-M7 and features the NVIC (Nested Vectored Interrupt controller): so if inside an interrupt there is another interrupt getting pending with higher urgency, it will interrrupt that interrupt.

I hope this helps,

Erich

在原帖中查看解决方案

2 回复数
2,653 次查看
Cindy
Contributor III

Hi Erich,

Thank you for your prompt reply and the link to the very useful articles that have answered all my queries about the interrupt.

Best Regards,

Cindy

 

2,661 次查看
ErichStyger
Specialist I

Hi @Cindy ,

short answer: yes.

longer answer: see https://mcuoneclipse.com/tag/nvic/

The RT1052 is an ARM Cortex-M7 and features the NVIC (Nested Vectored Interrupt controller): so if inside an interrupt there is another interrupt getting pending with higher urgency, it will interrrupt that interrupt.

I hope this helps,

Erich