2014-06-22 03:16 AM
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.732014-06-22 02:34 PM
CDC Configuration\CDC Configuration.axf: Error: L6218E: Undefined symbol HAL_PCDEx_SetRxFiFo (referred from usbd_conf.o).
CDC Configuration\CDC 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 Configuration\CDC Configuration.axf'' - 2 Error(s), 0 Warning(s).
2014-06-23 05:40 AM
try to include this file into your project: stm32f4xx_hal_pcd_ex.c
2014-06-23 07:46 AM
Thanks! It works now.
2014-06-27 03:22 AM
Hi dimopoulos.stavros,
This bug is related neither to the USB CDC library nor to the STM32CubeF4 FW. This is a STM32CubeMX tool limitation that will be fixed in next releases.Thank you for your interest in our STM32Cube solution.With regards.