2015-07-31 05:36 AM
Hello,
i am new to arm programming. I'd like to create a usb stack with STM32f4. Now i am working on a Stm32F4 Discovery kit. I read the reference guide regarding the OTG FS in device mode but i still can't understand how Rx FIFO and DFIFO are related, and How to read data from it. For example, for EP0 what is the procedure to get a SETUP packet data? after reading the POP register should i always read at DFIFO at address 0x1000 ? Please help me #otg #stm32f4 #usb #fs2015-08-03 08:38 AM
Hi massarenti.ivan,
I read the reference guide regarding the OTG FS in device modeDo you mean the RM0090?If you referred to another document, have a look to RM0090 (chapter USB on-the-go full-speed).-Mayla-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.
2015-08-05 12:52 AM
thank you for your response Mayla,
yes i looked in RM0090 document but i can't understand how communication works and how to write in FIFO. Should I always write in 0x1000 in order to send pckets?? Now when i debug the project i'm developing, I receive a GetDescriptor packets, then a SetAddress packet and the host continues to send me GetDescriptor packet again and again, always device descriptor....