cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L432 UART receive IRQ handler unable to created by Cube

LU998
Associate II

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?

LU998_2-1713429216523.png

thanks

LU998_0-1713429145150.png

LU998_1-1713429167470.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

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.

I Can't Believe It's Not Butter. If you find my answers useful, click the accept button so that way others can see the solution.

View solution in original post

4 REPLIES 4
Karl Yamashita
Lead III

Are you looking at the correct file where it gets generated?

I Can't Believe It's Not Butter. If you find my answers useful, click the accept button so that way others can see the solution.

the IRQ handler should be at main.c ?

 

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.

I Can't Believe It's Not Butter. If you find my answers useful, click the accept button so that way others can see the solution.
LU998
Associate II

thanks anyway