AnsweredAssumed Answered

USB CDC bug in the new STM32Cube FW_F4 V1.2.0 library

Question asked by dimopoulos.stavros on Jun 22, 2014
Latest reply on Jun 27, 2014 by Montassar BEN ROMDHANE
There is a bug on the latest STM32F4 usb cdc code.
Update the STM32CubeMX and the STM32CubeF4 library to the latest versions.
Create a new project and enable RCC HSE with external crystal and HS usb in device mode (internal PHY). Select CDC class for the HS USB device on the MiddleWares.
Select MDK-ARM 4.73 on the project settings
The following errors occur:

"Build target 'CDC 22-6-2014 Configuration'
linking...
CDC 22-6-2014 Configuration\CDC 22-6-2014 Configuration.axf: Error: L6218E: Undefined symbol HAL_PCDEx_SetRxFiFo (referred from usbd_conf.o).
CDC 22-6-2014 Configuration\CDC 22-6-2014 Configuration.axf: Error: L6218E: Undefined symbol HAL_PCDEx_SetTxFiFo (referred from usbd_conf.o).
Not enough information to list image symbols.
Finished: 1 information, 0 warning and 2 error messages.
"CDC 22-6-2014 Configuration\CDC 22-6-2014 Configuration.axf" - 2 Error(s), 0 Warning(s).
Target not created"

If you do not select the CDC the project compiles successfully.

The above problem occurs with the MDK-ARM v5.11.

Please verify if the problem also occurs with MDK-ARM v4.73

Outcomes