2024-04-18 01:34 AM
Hi, guys, anyone has met such an issue?
I was trying to generate code by CubeMX, and I also wanna generate USART1 IRQ handler but failed.
here are my settings, anyone can help me with this?
thanks
Solved! Go to Solution.
2024-04-18 11:47 PM
Umm, no. It's in stm32l4xx_it.c file.
But you shouldn't need to do anything in that file anyways. All your coding would be done in the callbacks which are in stm32l4xx_hal_uart.c or stm32l4xx_hal_uart_ex.c. You just override the weak callbacks that you want to use.
2024-04-18 01:28 PM
Are you looking at the correct file where it gets generated?
2024-04-18 06:23 PM
the IRQ handler should be at main.c ?
2024-04-18 11:47 PM
Umm, no. It's in stm32l4xx_it.c file.
But you shouldn't need to do anything in that file anyways. All your coding would be done in the callbacks which are in stm32l4xx_hal_uart.c or stm32l4xx_hal_uart_ex.c. You just override the weak callbacks that you want to use.
2024-04-19 12:23 AM
thanks anyway