Skip to main content
Visitor II
April 21, 2023
Solved

STM32F401CDU6 USB CAN'T RECOGNIZE

  • April 21, 2023
  • 2 replies
  • 1299 views

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.
    Best answer by AbdurrahmanOnat

    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.

    2 replies

    Technical Moderator
    April 24, 2023

    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

    Visitor II
    April 24, 2023

    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

    AbdurrahmanOnatAuthorAnswer
    Visitor II
    April 25, 2023

    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.