Skip to main content
Associate III
July 7, 2024
Question

B-U585I-IOT02A USB Host

  • July 7, 2024
  • 14 replies
  • 2592 views

Hello forum, 

I'm trying to setup my B-U585I-IOT02A as a USB host. 
Ive turned on the following:

  • USBPD - Type C only, TIM2, enabled USB support 
  • USBX - core, Host CoreStack FS, Host Controller FS, MSC
  • USB_OTG_FS - Host Only
  • UCPD - Source
  • FileX - FileX Core

to initiate I've used these in my main:

 

MX_USB_OTG_FS_HCD_Init();
ux_host_stack_hcd_register(_ux_system_host_hcd_stm32_name,_ux_hcd_stm32_initialize, (ULONG)USB_OTG_FS,(ULONG)&hhcd_USB_OTG_FS);

 

It seems I don't get the any power out to my USB flash drive, and the USB event callback doesn't work.
am I doing something wrong? am I missing something? thanks in advace

This topic has been closed for replies.

14 replies

Nicolas P.
ST Employee
July 8, 2024

Hello @ElectroManiac 

Could you share to us a trace .cpd file please ? Using the tracer tool here.

To check if the attach state is reached. Because in Type C, before turning on VBUS, the CC lines must be checked.

In the trace, check if there are notifications sent by the USBPD stack to the USB part.

The mechanism is described here.

Regards,

Nicolas

Associate III
July 9, 2024

Hello @Nicolas P. 

the CubeMonitor UCPD doesn't recognize the USB-C of the board,
What should I do?


Nicolas P.
ST Employee
July 9, 2024

Hi @ElectroManiac.

You need to add the embedded trace tool. See this wiki.

Have you tried looking for the COM port directly (clicking on the blue top right panel) ?

Nicolas

ABOUA
ST Employee
July 8, 2024

Hello @ElectroManiac 

Please check the Vbus generation, this should be managed by the TCPP03 

Regards

 

Associate III
July 13, 2024

@Nicolas P. Im adding the .ioc file
and yes its the same project.
after a lot of debugging the searching I've finally managed to compile successfully everything but the USB and the UCPD software still doesnt work

ST Technical Moderator
July 15, 2024

Hi @ElectroManiac 

You may need to share the full project. According to your IOC, you are using full stack configuration for USB PD application not type C only as you mentioned in initial post.

FBL_0-1721052332196.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
Associate III
July 17, 2024

@FBL its because I kept trying to make it work, after a couple of days of trying to make everything compile I succeeded but the "ux_host_event_callback" doesn't activate, and the UCPD software still doesn't recognize the board/app 

ST Technical Moderator
July 17, 2024

Hi @ElectroManiac 

Would you please share your full project to reproduce on my end?

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
Associate III
July 18, 2024

is there a way to send it privately and not put it here publicly?