I need to connect an external USB device to the MKR Vidor 4000 while having the Vidor to behave as a USB device. But i just found out that the SAM D21 only offers 1 USB module that either behave as a USD host or device. What are the possible ways to have both usb host and device at the same time? Can I connect those standard USB host shields to Vidor 4000?
When acting as a usb device, i want the Vidor uses the USB pins (D+/D-) of the mini PCIe connector to connect to its host.
According to schematic the USB pins in mini PCIe connector are routed to the D+/D- lines on the main USB connector. You will not have two devices using those PCIe lines and micro-USB port.
One of the possibilities is to implement the needed USB device in the FPGA, full speed device is perfectly achievable without additional hardware outside (maybe additional pullup resistor will be needed) and you can find open source implementations of all kinds of devices on github.