cancel
Showing results for 
Search instead for 
Did you mean: 

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

maggie
Associate III
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
2 REPLIES 2
Posted on August 05, 2014 at 11:11

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.
Brown.Paul
Associate
Posted on August 07, 2014 at 22:57

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.