Getting Build Errors in USB Middleware Library for STM32F070
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-25 11:24 PM
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.
- Labels:
-
Bug-report
-
STM32CubeIDE
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-26 07:50 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-27 03:16 AM
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.
Best Regards.
Mahmoud