2020-05-13 03:27 AM
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?
2020-05-13 05:55 AM
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:
2020-05-18 12:10 AM
thanks TDK