AnsweredAssumed Answered

Bug Report STM32CubeMX v4.3, build for STM32F3-Discovery_Demo fails

Question asked by maggie.roxas on Aug 2, 2014
Latest reply on Aug 7, 2014 by brown.paul.001
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.

Outcomes