0

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

halfer
  • 19,824
  • 17
  • 99
  • 186
  • I have cut out some copy+paste duplication from this question (and there is still some left) but I am not sure the remaining question produces a reproducible problem. How could a reader replicate what you are seeing? – halfer Aug 15 '23 at 15:59
  • Is the vector table correct? Does it contain the correct handler address for USART1? – Ilya Aug 16 '23 at 11:56

0 Answers0