2014-08-01 08:40 PM
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
2014-08-05 02:11 AM
Himaggie.roxas,
Thank you for bringing this issue to our attention. We’ll pass it along to our STM32CubeF3 team. You have just to add the following define within the stm32f3xx_hal_pcd.h driver:#define __HAL_USB_EXTI_CLEAR_FLAG() EXTI->PR = USB_EXTI_LINE_WAKEUP
In the meantime, please continue to report bugs and submit valuable feedback.
With regards.
2014-08-07 01:57 PM
Please note that this definition is also missing:
__HAL_USB_EXTI_SET_RISING_EGDE_TRIGGER and that it has a spelling error - EGDE instead of EDGE.