cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H743 USB device transmits zeros to the Host

lw23
Visitor

Everything else is working fine.

Setup packet with SET_ADDRESS received and processed.

Next GET_DESCRIPTOR for DEVICE which is sent back ok 

I've verified the data written to the Tx FIFO is correct.

Correct number of bytes it transmitted but the bytes are not correct.

I'm using a STM32H743-EVAL board, hardware is working fine

Any suggestions?

p.s. the Device Descriptor received displayed by USB View

usb-view-cap1.png

2 REPLIES 2
FBL
ST Employee

Hi @lw23 

Would you double-check the device descriptor data you are writing to the Tx FIFO. Ensure that all fields are correctly populated according to the USB specification. The bLength field should be 18 for a standard device descriptor.

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.


TDK
Super User

Is data cache enabled? Disable it during the debugging stage. If that fixes it, you'll need to instrument your code with appropriate cache handling.

> I've verified the data written to the Tx FIFO is correct.

How, exactly?

If you feel a post has answered your question, please click "Accept as Solution".