Skip to main content
Visitor II
May 24, 2021
Solved

H743BGTx USB CDC no enumerating and not working

  • May 24, 2021
  • 2 replies
  • 1321 views

CubeIDE: 1.51, FW: H7_V1.8.0

In the experience of using the F4 series, there is no problem in setting the CDC mode. But this time, the H743BGTx MCU setting cannot be successful, and the computer USB is not listed. The USB initialization is successful without any error message, but there is no response.

I also try other usb device type but same problem. (without error but no response.)

Does anyone know how to solve it?

    This topic has been closed for replies.
    Best answer by tliao.1

    solved this problem.

    I'm so stupid, forgot that VDD3v3_USB pin connect to VDD.

    thanks 

    2 replies

    Visitor II
    May 24, 2021

    Hi @tliao.1​ ,

    Please refer to the STM32CubeH7 Firmware Package, under directory: Projects\$Board_Name$\Applications\USB_Device\CDC_Standalone

    Best Regards,

    Ons.

    tliao.1Author
    Visitor II
    May 25, 2021

    Is there any problem with the code generated by the cubeMX?

    I use the latest version HAL_library (v1.8.0), and it seems that past errors have been corrected (ex: HAL_PWREx_EnableUSBVoltageDetector)

    But it still does not work properly for me.

    It seems that Vbus is not detected, and the USB communication cannot be established. The signal d+, d- always low,

    because the communication is not possible, so the computer cannot enumerated or display unknown devices?

    The example project code of CDC_Standalone_FS is similar to the code generated by the cubeMX.

    After comparison, I found that the DEVICE_ID is defined differently (in usbd_desc.h), but this does not seem to be enough to cause the problem?

    Are there any other suggestions? I have tried for nearly two weeks... still unsuccessful

    thanks

    Visitor II
    May 25, 2021

    Hi @tliao.1​ ,

    No, there is no problem with the code generated with STM32CubeMX. The FW I provided was just for reference and alignment.

    Can you try to run the project of the CubeFW I provided and inform me if it works for you. Because it should work, and just to make sure that the problem is in the code and not in the HW part.

    Best Regards,

    Ons.

    tliao.1AuthorAnswer
    Visitor II
    May 25, 2021

    solved this problem.

    I'm so stupid, forgot that VDD3v3_USB pin connect to VDD.

    thanks