2025-06-19 7:00 AM
Hi,
I'm using an STM32F767 with both USB OTG FS and HS in Host mode.
FS is working fine with USB MSC + FatFS, and I can create files on a USB stick.
HS is set to use internal FS PHY (no external ULPI). It detects the pendrive (HOST_USER_CLASS_ACTIVE), but FatFS fails to create/open any file (f_mount or f_open returns FR_DISK_ERR).
This happens in both bare-metal and FreeRTOS.
If I disable FS, HS works fine. But when both are active, only FS works for file ops.
Is there any way to get FS and HS USB MSC + FatFS working together when HS uses internal FS PHY?
Any example or suggestion to fix this dual-port issue would be invaluable.
Thanks!
2025-06-19 7:08 AM
Please give details of your hardware - see: How to write your question to maximize your chances to find a solution.
2025-06-19 7:09 AM
Hello @MADHU2
When HS uses the internal FS PHY, it shares the same PHY hardware as the FS controller. This means both cannot operate fully independently at the same time because the PHY is a shared resource.
Since the PHY is shared, only one host controller can use the internal FS PHY at a time.
Unfortunately, examples with both FS and HS active simultaneously using internal FS PHY are non-existent.
You can try to merge FS and HS examples carefully, but expect to handle PHY sharing issues manually.
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-06-19 10:07 AM
Hi All,
@MADHU2 is using two independent controllers @Ghofrane GSOURI
Here is an example using F7 as CDC device on HS instance and HID device on FS instance. If still facing issues with your implementations. You may drop the firmware to help you further.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.