Skip to main content
zabel
Associate III
April 4, 2014
Question

Interrupt nesting problem

  • April 4, 2014
  • 1 reply
  • 463 views
Posted on April 04, 2014 at 17:26

Hi,

I am trying to get interrupt nesting to work on an STM32F207, but so far without success.

I am using no subpriorities (SCB_AIRCR.PRIGROUP = 3)

I am inside the hander of TIM6_DAC, and an UART5 interrupt is enabled and pending:

NVIC_ISER1 = 0xe000e104 (i.e. bit 21 = SETENA53 is set)

NVIC_ISPR1 = 0x20600100 (i.e. bit 21 = SETPEND53 is set)

NVIC_IPR13 = 0xf08000 (i.e. priority of UART5 IRQ is 0x80 and priority of TIM6_DAC is 0xf0, so UART5 handler should be priorized over TIM6_DAC handler)

basepri is 0

Why does the UART5 interrupt handler does not get called as I would expect?

What am I missing?

Thanks for any help

  Dirk

#stm32-interrupt-nesting
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    April 4, 2014
    Posted on April 04, 2014 at 17:37

    What am I missing?

    Dunno, but I'm missing some complete/concise code that demonstrates what you're attempting to do, and how things are configured, etc.

    I do recall an issue some time back about how the NVIC Group setting was broken.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..