Skip to main content
Cde M.1
Associate
March 14, 2023
Solved

Bug in USB CDC code generator [Solved]

  • March 14, 2023
  • 5 replies
  • 3961 views

Hi, today I found an pretty unusual bug while doing some projects with the USB CDC, my code, out of the blue, showed hundreds of errors, after some diggins, me and a friend, found out that in the usbd_def.h, the TypeDef of "USBD_StatusTypeDef" was changed with an "q", I think it must have been some mistake while updating the libraries.

Anyway, just change the letter "q" in the line 209 to "USBD_StatusTypeDef" of the usbd_def.h folder and the errors should disappear.0693W00000aIs4WQAS.png0693W00000aIs5AQAS.png

Best answer by KDJEM.1

Hello @Cde M.1​ ,

Thank you for this clarification.

I made some tests using STM32CubeIDE.1.12.0 version and the STM32Cube_FW_F1_V1.8.0 firmware version and I didn't find any issue.

The "USBD_StatusTypeDef" is well described in line 209.

So, I advise you to download and to use the last firmware version of STM32CubeF1.

Please let me know if the problem is solved.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

  

Kaouthar

5 replies

KDJEM.1
Technical Moderator
March 14, 2023

Hello @Cde M.1​ and welcome to the community :smiling_face_with_smiling_eyes:,

Could you please provide more details on the issue:

  • Which STM32 product you are using?
  • Which STM32CubeMX and STM32CubeIDE versions are you using?
  • Which Cube firmware version are you using?

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Cde M.1
Cde M.1Author
Associate
March 14, 2023

Hi @KDJEM.1​ , I am using the STM32F103C8Tx - LQFP48. (BluePill).

The STM32CubeIDE version is the 1.12.0 (But it was appearing in the 1.9, but I updated it and even reinstalled while trying to fix the error).

The firmware I am not 100% sure in wich version it was, but since I updated the CubeIDE and even reinstalled it (with the latest versions), I think it might be the latest.

If you need any more information, feel to free to ask, I will be glad to help.

Thank You.

Carlos E. de Mattia de Sousa

KDJEM.1
KDJEM.1Best answer
Technical Moderator
March 15, 2023

Hello @Cde M.1​ ,

Thank you for this clarification.

I made some tests using STM32CubeIDE.1.12.0 version and the STM32Cube_FW_F1_V1.8.0 firmware version and I didn't find any issue.

The "USBD_StatusTypeDef" is well described in line 209.

So, I advise you to download and to use the last firmware version of STM32CubeF1.

Please let me know if the problem is solved.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

  

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Associate II
June 27, 2024

Hi, I am also facing same issue with STM32F070 Controller.

I have already posted the issue in the below link. (I have shared my project also).

https://community.st.com/t5/stm32cubeide-mcus/getting-build-errors-in-usb-middleware-library-for-stm32f070/m-p/690133#M28388

FIrmware Version V1.11.5

Kindly help me to resolve this. 

Associate II
June 27, 2024

Hi, I am also facing same issue with STM32F070 Controller.

I have already posted the issue in the below link. (I have shared my project also).

https://community.st.com/t5/stm32cubeide-mcus/getting-build-errors-in-usb-middleware-library-for-stm32f070/m-p/690133#M28388

FIrmware Version V1.11.5

Kindly help me to resolve this. 

Associate II
June 27, 2024

Hi, I am also facing same issue with STM32F070 Controller.

I have already posted the issue in the below link. (I have shared my project also).

https://community.st.com/t5/stm32cubeide-mcus/getting-build-errors-in-usb-middleware-library-for-stm32f070/m-p/690133#M28388

Firmware Version V1.11.5

Kindly help me to resolve this.