Question
Bug Report STM32CubeMX v4.3, build for STM32F3-Discovery_Demo fails
Posted on August 02, 2014 at 05:40
Fresh download and build of STM32CubeMX v4.3 for STM32F3-Discovery_Demo fails due to implicit declaration of
__HAL_USB_EXTI_CLEAR_FLAG:
Warning[Pe223]: function ''__HAL_USB_EXTI_CLEAR_FLAG'' declared implicitly C:\Users\maj\Downloads\STM32CubeF3\stm32cubef3\STM32Cube_FW_F3_V1.0.0\Projects\STM32F3-Discovery\Demonstrations\Src\stm32f3xx_it.c 172
...
Error[Li005]: no definition for ''__HAL_USB_EXTI_CLEAR_FLAG'' [referenced from C:\Users\maj\Downloads\
STM32CubeF3\stm32cubef3\STM32Cube_FW_F3_V1.0.0\Projects\STM32F3-Discovery\Demonstrations\EWARM\
STM32F3-Discovery_Demo\Obj\stm32f3xx_it.o]
Error while running Linker
Tried to workaround by adding this line in stm32f3xx_hal_pcd.h:
#define __HAL_USB_EXTI_CLEAR_FLAG() EXTI->EMR &= ~(USB_EXTI_LINE_WAKEUP)
But I'm not sure if this workaround is OK.
#stm32cubem