B-U585I-IOT02A USB Host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-07 4:52 AM - edited ‎2024-07-07 4:59 AM
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
- Labels:
-
STM32U5 series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-08 12:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-08 1:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-09 12:09 AM
Hello @Nicolas P.
the CubeMonitor UCPD doesn't recognize the USB-C of the board,
What should I do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-09 12:15 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-09 2:04 AM
@Nicolas P.
the PC doesn't recognize the COM for the USBC, (it does show the STLink Com tho)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-09 2:14 AM - edited ‎2024-07-09 2:14 AM
It's because you need to add a part in the firmware.
Have you followed the above link I shared ?
You need to configure a LPUART and an utility : Tracer_emb as on below picture.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-09 2:24 AM
@Nicolas P. I'm following the manual as I write to you and will update in a new comment once I'm done with It,
But before that, I must say that the USBPD_SNK_UX_Device_HID_CDC_ACM example doesn't include TCPP support.
Will it even work without it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-09 3:01 AM
@Nicolas P.
I get these errors after generating the code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-11 7:38 AM
Hello @ElectroManiac
The example USBPD_SNK_UX_Device_HID_CDC_ACM uses the TCPP.
Can you share your .ioc please ?
You made another post here. Is it the same project / issue ?
