cancel
Showing results for 
Search instead for 
Did you mean: 

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

sdim
Associate III
Posted on June 22, 2014 at 12:16

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

4 REPLIES 4
joe
Associate III
Posted on June 22, 2014 at 23:34 Getting the same issue with MDK v4.73

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).

klaus
Associate II
Posted on June 23, 2014 at 14:40

try to include this file into your project: stm32f4xx_hal_pcd_ex.c

sdim
Associate III
Posted on June 23, 2014 at 16:46

Thanks! It works now.

Posted on June 27, 2014 at 12:22

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.