Skip to main content
patrickbuchbauer9
Associate II
June 10, 2009
Question

Problems with the NVIC / Interrupt priority

  • June 10, 2009
  • 2 replies
  • 1096 views
Posted on June 10, 2009 at 09:09

Problems with the NVIC / Interrupt priority

    This topic has been closed for replies.

    2 replies

    patrickbuchbauer9
    Associate II
    May 17, 2011
    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

    artur2
    Visitor II
    May 17, 2011
    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,