Forum Discussion
Altera_Forum
Honored Contributor
10 years agoLinux has a USB system already built. It's mostly used for host mode, but there are several drivers to make linux into a USB device that will be visible to a PC etc. I don't know if linux has a driver for the SOC's USB core when operating as a device. Even if it doesn't, it would be easier to add that to the existing USB device mode framework than constructing something from scratch that doesn't crash Linux. A bonus is that DMA will work from the start. The HPS DMA core will be able to access any devices in the FPGA that the ARM can see. Make sure you have proper entries in the dtb file for your FPGA device(s).