cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB50 || Error- undefined reference to lpuart1_irqhandler

Aishwarya
Associate III

Empty code initialized peripherals(UART,SPI) code generated by STM32CubeIDE give error undefined reference to lpuart1_irqhandler at compile time.

In stm32wb50 only UART, SPI ,I2C & RF communication channel available.

Startup file has lpuart1_irqhandler , which is wrong .

if I can remove that line(line 197) from startup file it compile and run properly otherwise not.

What I do?0693W000000XMBgQAO.png

2 REPLIES 2
TDK
Guru

At the bottom of the file, a bunch of those symbols are defined as weak references to Default_Handler. Add this one as well:

  .weak  LPUART1_IRQHandler
  .thumb_set LPUART1_IRQHandler,Default_Handler

Appears to be a bug in the STM32CubeWB repository:

https://github.com/STMicroelectronics/STM32CubeWB/blob/master/Drivers/CMSIS/Device/ST/STM32WBxx/Source/Templates/gcc/startup_stm32wb50xx_cm4.s

If you feel a post has answered your question, please click "Accept as Solution".
Aishwarya
Associate III

thanks TDK