Skip to main content
Associate
April 18, 2024
Solved

STM32L432 UART receive IRQ handler unable to created by Cube

  • April 18, 2024
  • 2 replies
  • 1376 views

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

 

This topic has been closed for replies.
Best answer by Karl Yamashita

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.

2 replies

Karl Yamashita
Principal
April 18, 2024

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

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
LU998Author
Associate
April 19, 2024

the IRQ handler should be at main.c ?

 

Karl Yamashita
Karl YamashitaBest answer
Principal
April 19, 2024

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.

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.CAN Jammer an open source CAN bus hacking toolCANableV3 Open Source
LU998Author
Associate
April 19, 2024

thanks anyway