How to receive data from USB peripheral via MAX3421E.
Hi,
I am using STM32 in my project. The use case includes the following :-
1) ID accessory(pen drive) ----> STM32.
In this STM32 should act as a USB host and detect the ID accessory as well as do some data transfer. We are going to use MAX3421E which will turn STM32 into USB peripheral . I have library for MAX3421 which I will be including in the code.
github.com/jakakordez/max3421e-stm32/tree/master/Src
My doubt is will I need USB drivers here? If yes which class drivers should I add?
2) The ID accessory will be having a Flash chip with file system mounted on it. It will also have a unique Device ID. The STM32 will have to read that device ID whenever ID accessory is plugged in to the device. The RX and TX of this communication will happen via SPI protocol I assume. In the library I have seen the code for detecting USB and enumerating it. But how to send data to the ID accessory(flash chip) and how to receive data from ID accessory?? I am confused on that.
Your help will be appreciated.
Thanks & Regards,
Snehal Bundele.
