cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with the NVIC / Interrupt priority

patrickbuchbauer9
Associate II
Posted on June 10, 2009 at 09:09

Problems with the NVIC / Interrupt priority

2 REPLIES 2
artur2
Associate II
Posted on May 17, 2011 at 13:14

Hi,

Setting of the NVIC_PriorityGroupConfig does not change interrupt priority (at least not directly).

First you should configure interrupt priority grouping (using NVIC_PriorityGroupConfig) then set priorities for your peripherals (using NVIC_Init).

See folder Project/Examples/NVIC/Priority in the stm32f10x standard peripheral library.

Regards,

patrickbuchbauer9
Associate II
Posted on May 17, 2011 at 13:14

Hello,

I'm working with the STM32F103VBT6. In my application I have to run a motor and communicate with another controller over the USART1 interface.

Everything for its own works fine. But when I received data over the interface and the motor is running at that time, the motor stops after some characters. When I run the motor at higher speed, it stops faster.

So this looks like there is a conflict between the interrupts.

So I have changed the NVIC_PriorityGroupConfig for the USART1 and also the NVIC_IRQChannelPreemptionPriority, but without success.

The ohter interrupts are triggered by the TIM1.

Can someone help me, thanks in advance.

Patrick