Skip to main content
AbdurrahmanOnat
Associate
Apr 21, 2023 2:12 PM UTC
Solved

STM32F401CDU6 USB CAN'T RECOGNIZE

I have an STM32F401CDU6 blackpill board and I have a USB not recognize code 43 error when activate dfu mode. It's don't do it 3 months ago

This topic has been closed for replies.
AbdurrahmanOnat
AbdurrahmanOnatBest answer
Associate
Apr 25, 2023 7:46 PM UTC

USB is problematic way with this board (blackpill). If you can buy a ST-LINK programmer (I buy a ST-LINK V2) and programming with this way. No button combination, no problem.

I am close this post now. Thanks to everyone.

3 replies

ST Technical Moderator
Apr 24, 2023 8:05 AM UTC

Hello @AbdurrahmanOnat​;

Let me first welcome you to the Community :)

Maybe the problem is with your cable, so try a different cable, and make sure that the connections are OK.

Check if the USB_OTG_FS_DP and USB_OTG_FS_DM wires are swapped.

In the USBD_config.h, check you have the correct out-report buffer size (USBD_CUSTOMHID_OUTREPORT_BUF_SIZE)

 Please keep me informed about your progress on this issue.

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

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
AbdurrahmanOnat
Associate
Apr 24, 2023 6:49 PM UTC

Thank you for your friendly welcome.

I tried with a different cable but the result is the same. USB_OTG_FS_DP and USB_OTG_FS_DM wires are not swapped. Because board is worked on 3 monts ago. I can't do any programming process because Windows can not recognize the USB.

Thanks for your attention.

Abdurrahman

AbdurrahmanOnat
AbdurrahmanOnatAuthorBest answer
Associate
Apr 25, 2023 7:46 PM UTC

USB is problematic way with this board (blackpill). If you can buy a ST-LINK programmer (I buy a ST-LINK V2) and programming with this way. No button combination, no problem.

I am close this post now. Thanks to everyone.