Skip to main content
Graduate
March 2, 2024
Solved

Nucleo-H563ZI as USB host?

  • March 2, 2024
  • 1 reply
  • 5130 views

Hello,

I would like to know if Nucleo-H563ZI board could be used as a USB host, using the user USB (CN13). I'm asking because I'm a bit confused, honestly - I've only found examples where it's being used as a device and the board manual seems to mention only as device and sink only for the CN13 connector. OTOH, in CubeIDE, after starting a new project based on this board, the USB and USBX can be configured as host, without any restriction. And, if it's possible, should UCPD1 and USBPD be enabled along with USB and USBX, or it's enough to call HAL_PWREx_EnableVddUSB at the end of HAL_HCD_MspInit?

 

Basically, what I want to implement is reading VID, PID and SN from a USB storage device plugged in CN13 and printing them over USART3.

Thanks!

    This topic has been closed for replies.
    Best answer by AScha.3

    Hi,

    USB host possible, yes ; i have tried as audio host ...working.

    I just set jumper JP2 : stlink+chgr+usb_user , so with debug USB all is working.

    look in circuit:

    AScha3_0-1709398840633.png

     

    1 reply

    AScha.3Answer
    Super User
    March 2, 2024

    Hi,

    USB host possible, yes ; i have tried as audio host ...working.

    I just set jumper JP2 : stlink+chgr+usb_user , so with debug USB all is working.

    look in circuit:

    AScha3_0-1709398840633.png

     

    Graduate
    March 2, 2024

    Thanks for answering,

     

    So, to make sure I understand correctly - I already have JP2 in the STLK position, do I have to add 2 more jumpers, in the CHGR and USB_USER positions? I was under the impression that only one jumper is allowed at one moment, since JP2 is the power source selector for the board?

    Super User
    March 2, 2024

    With the jumpers JP2 you decide, what to connect to 5V .

    I needed 5V with max. power at the USB_USER for connecting sound card; if you want same, need 3 jumpers.

    if not sure, just look at the circuit, there you see, what you connect.

    https://www.st.com/resource/en/schematic_pack/mb1404-h563zi-c01-schematic.pdf