Sorry, you need to enable JavaScript to visit this website.

USB Driver (Bare-Metal)

Unsolved
4 posts / 0 new
Julian-Bauer's picture
Julian-Bauer
Junior(0)
USB Driver (Bare-Metal)

Hello,
Is there a way to use USB in bare-metal without using Linux?
The Application should be able to write Data (in a stream) to a mass-storage drive via USB.
Using Linux + bare-metal as a AMP-solution would be to complicate in my opinion.
Thank you,
Julian

JFoster's picture
JFoster
Moderator(55)
Hi Julian,
Julian-Bauer's picture
Julian-Bauer
Junior(0)
Hi Josh,

Hi Josh,
i know that the standalone driver supports only device mode functionality, but this is jsut a driver thing, isn't it? it should be possible to initialize the usb port as host, because linux does the same. 
 
at the moment i try to implement xapp1078 with petalinux on core0 and ethernet lwip on core1 but there is a problem with the lwip ethernet hardware driver. everything works correct without petalinux. together i cant send TCP, it stucks after ARP protocol...

zedman2000's picture
zedman2000
Moderator(2)
Hi there,

Hi there,

Is your Petalinux install controlling the Ethernet MAC? If that is the case, you probably cannot access that hardware through the LWIP instance.

As for trying to use the USB on baremetal as a HOST, there is a LOT of overhead that Linux takes care of. If you are dead set on trying this for the reason of using two ethernets and NOT utilizing a second MAC in the PL, I would suggest trying to use the USB under the Petalinux and provide the hardware MAC to the LWIP install.

That aside, I would suggest adding a second MAC and PHY, using whatever expansion your board has. If it is FMC you can leverage something from Opsero.

--Dan