wokwi-features
wokwi-features copied to clipboard
Wokwi STM32 weak interruption functions implementation can't be replaced.
trafficstars
Wokwi STM32 wrapper missing weak attribute for interruption functions? When i try to implement my own interruption functions, it gives me multiple definition error.
To Reproduce Make a simple receive interruption for UART on Nucleo board.
Expected behavior Working interruptions, with my own callback code for RxCpltCallback for example.
Environment (please complete the following information):
- OS: Ubuntu 24.04LTS
- Browser chrome
- Version 131.0.6778.204 (Official Build) (64-bit)
** Build failed message: **
/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/12.2.1-1.2/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /libraries/SrcWrapper/stm32/interrupt.cpp.o: in function `HAL_GPIO_EXTI_Falling_Callback':
interrupt.cpp:(.text.HAL_GPIO_EXTI_Falling_Callback+0x0): multiple definition of `HAL_GPIO_EXTI_Falling_Callback'; /sketch/main.c.o:main.c:(.text.HAL_GPIO_EXTI_Falling_Callback+0x0): first defined here
collect2: error: ld returned 1 exit status
Error during build: exit status 1