Skip to main content
Associate III
August 8, 2024
Solved

USB Host mode Configuration in stm32h503rbt6 controller

  • August 8, 2024
  • 2 replies
  • 1156 views

@hi_it all, 

I newly working in USB Host mode configuration in stm32h503rbt6 controller using Keil software(without Hall code),

this isn't very easy for me, I can't understand, how to use this method.

actually, this implementation is to communicate (stm32 (Host)) with Tablet(device).

I spent one week to USB understand this concept but couldn't, so please can you suggest me and share some notes for achieve this configuration

Thanks,

Best answer by FBL

You are welcome @Mohan30 

If you need example for device STM32CubeH5/Projects/NUCLEO-H503RB/Applications/USBX/Ux_Device_CDC_ACM at main · STMicroelectronics/STM32CubeH5 (github.com)

For host mode, I can share with you this example

FBL_0-1727806565703.png

FBL_1-1727806678549.png

2 replies

Technical Moderator
September 27, 2024

Hi @Mohan30 

Which board are you using? I suggest you following the workshop on H5 STM32H5 workshop - 09 USB - USBX-CDC lab (experts) (youtube.com) If using Nucleo-H503, USB Host configuration is not recommended because it is not USB-C® compliant.

However, if you would you like to use it for testing purposes you should set the following solder bridges :

  •  SB1 and SB7 ON
  • SB14 ON
  • SB4 and SB8 OFF
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
Mohan30Author
Associate III
September 28, 2024

@FBL  Thanks, dude.
I searched a lot on Google, but I can't get the correct code, can you suggest a sample working code for the USB Device?
I try to implement it but this isn't very clear to me. 

FBLBest answer
Technical Moderator
October 1, 2024

You are welcome @Mohan30 

If you need example for device STM32CubeH5/Projects/NUCLEO-H503RB/Applications/USBX/Ux_Device_CDC_ACM at main · STMicroelectronics/STM32CubeH5 (github.com)

For host mode, I can share with you this example

FBL_0-1727806565703.png

FBL_1-1727806678549.png

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
Mohan30Author
Associate III
October 5, 2024

@FBL  Thanks for helping me dude.