cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F7 Error FreeRTOS Uart IT communication

RLedw.1
Associate

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.

2 REPLIES 2
KnarfB
Principal III

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.1
Associate

Okay thanks, it works!