cancel
Showing results for 
Search instead for 
Did you mean: 

DMA example FLASH to RAM with NVIC preemption > 4 not work

tomas239955_stm1_st
Associate II
Posted on December 01, 2011 at 18:11

Hi everybody,

i found the following problem:

If you take an example project STM32F2 -> Project examples -> DMA -> FLASH RAM

and add to main: 

NVIC_PriorityGroupConfig(NVIC_PriorityGroup_4); //Only preemption priority group (4 bits)

and then set in DMA_config() function:

NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 5;

Then the DMA2_Stream0_IRQHandler will never called, and i am asking why?

#nvic-preemption-priority->-4
1 REPLY 1
tomas239955_stm1_st
Associate II
Posted on December 07, 2011 at 10:25

Anybody?