Skip to main content
Visitor II
January 10, 2020
Question

STM32F7 Error FreeRTOS Uart IT communication

  • January 10, 2020
  • 2 replies
  • 1151 views

Hi, i created two FreeRTOS tasks. Each task shall print a message via terminal using Uart IT. When i start the program it says processor received an unexpected interrupt. infinite loop.

Whats wrong here?

Thanks.

    This topic has been closed for replies.

    2 replies

    Super User
    January 10, 2020

    Your stm32f7xx_it.c defines void USARTx_IRQHandler(void), but there is no such interrupt handler.

    main.c contains the correct define:

    #define USARTx_IRQHandler               USART6_IRQHandler

    but, that's not visible/effective in stm32f7xx_it.c

    Move all those defines from main.c to main.h

    RLedw.1Author
    Visitor II
    January 10, 2020

    Okay thanks, it works!