Skip to main content
Associate III
January 8, 2025
Question

Failed to inerface (4 and 8 GB) pendrive to STM32H747

  • January 8, 2025
  • 4 replies
  • 926 views

 

Dear Community,

 

I am currently working on interfacing of USB (pen-drive) in FS mode with STM32H747BIT6.

I have observed that  during the enumeration process of pen-drive it is failing  to proceed at the function

USBH_HandleControl --> case CTRL_SETUP_WAIT: --> USBH_LL_GetURBState -->HAL_HCD_HC_GetURBState -->

hhcd->hc[chnum].urb_state is not changing to URB_DONE and continues to show URB_NOTREADY.

As the interrupt is not getting triggered for FS.

Is there any i can find if the problem subsides in Hardware or USB driver side.

Attaching schematic part for the reference.

Thanking in advance.

Regards

4 replies

Andrew Neil
Super User
January 8, 2025
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Tesla DeLorean
Guru
January 8, 2025

No useful information presented. 

Instrument the USB interaction at first connection.

Show file system interaction at a block level.

Make sure it can read the MBR and BPB from the media and review what's happening differently between working and non-working cases.

Instrument error and status messages.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
RushaliAuthor
Associate III
January 9, 2025

@Andrew Neil

I have updated my query. Awaiting for the solution .

 

ST Technical Moderator
February 11, 2025

Hi @Rushali 

Could you explain why you use ULPI interface while operating in FS mode only?

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