I had no problem using the serial port interrupt to receive data in bare metal, but when I ported this code to freertos, The interrupt channel is changed from USART1_IRQn to USART1_IRQChannel (because USART1_IRQn is not defined in stm32f10x_lib.h in freertos), nothing else has changed, but it is an interrupt that does not enter serial port 1
I checked the connection, whether I forgot the serial port initialization and whether I turned on or off the serial port interrupt, but no problem was found. But when I port this code to freertos, the interrupt channel selection is changed from USART1_IRQn to USART1_IRQChannel (because USART1_IRQn is not defined in stm32f10x_lib.h in freertos), and nothing else is changed. But it just doesn't go into the interrupt of serial port 1