Arm Mbed OS support forum

USBHostMSB and STM32H7

Hello,
I try to use an USB key (FAT) on an STM32H743 USB FS bus and it looks unsupported for years.

I found USBHost in unsupported
In USBHALHost_STM.h i pin for VBUS and added

__HAL_RCC_GPIOA_CLK_ENABLE();
pin_function(PA_11, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_OTG1_FS)); // DM
pin_function(PA_12, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF10_OTG1_FS)); // DP

In USBHALHost_STM.cpp
after all USB_OTG_GlobalTypeDef *USBx = hhcd->Instance;
i added
uint32_t USBx_BASE = (uint32_t)USBx;

and it not detects my USB key.

USBHostMSD usb_storage; // looks ok on debugger
while(!usb_storage.connect()) // my usb key blinks every 500 ms but connect is never true
{
Thread::wait(500);
}

Could someone help me please ?