cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Build Errors in USB Middleware Library for STM32F070

Sanjaydr
Associate II

Hi,

I want to use USB for STM32F070CBT6 controller and I have enabled the USB device mode as CDC. After generating the source in STMCube IDE, I am getting build errors usbd_cdc_if.h and STM32_USB_Device_Library.

 

The errors related to "error: unknown type name 'USBD_StatusTypeDef'"

"error: unknown type name 'USBD_HandleTypeDef';"

 

Kindly help me.

 

2 REPLIES 2
Sanjaydr
Associate II

Hi Mahmoud Ben Romdhane,


Please find my project here. Please import and try to build the project. We will be getting 301 errors with respect to USB Library.

Just for your information, Please try to comment  #include "usbd_cdc_if.h" in SelfTest.h file.. and build it. We wont get these errors. 

I am totally confused what is wrong in my project. Please help.

Hello @Sanjaydr ,

 

First let me thank you for posting and welcome to the ST Community.

As discussed, I downloaded the file that you had attached in the comment and, I did not get the same errors.

Knowing that after the code generation of the ioc file, the build was finished with no errors or warnings.

 

MahmoudBenRomdhane_1-1719482705732.png

 
 

MahmoudBenRomdhane_4-1719482799243.png

Best Regards.

Mahmoud