This function works fine for Host mode reads/IN transactions.
When you schedule a write to an OUT pipe, you get an IN transaction.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
This function works fine for Host mode reads/IN transactions.
When you schedule a write to an OUT pipe, you get an IN transaction.
BTW: if your being plagued by a defective +5v tolerant USB0 VBUS pin not togging GTO device into piped TXD mode it may be relative to random pin failure. The work around below, Tivaware USB0 library seems to react on FIFO activity and toggles VBUS/ID pins relative and automatically for device endpoint simply being connected. After seeing how well this works to isolate the host from device +5v destructive reverse current flow into MCU VBUS pin it makes for a nice WA. Seemingly an excellent condition VBUS pin will measure very high ohmic resistance in the high megohms range.
/* USB_GPCS_DEVMOD_DEVVBUS: * Use USB0 VBUS PB1, force PB0 ID high(Device). * USB_GPCS_DEVMOD_HOSTVBUS: * Use USB0VBUS and force USB0ID low(Host) * USB_GPCS_DEVMOD_DEV: * Force USB0VBUS and USB0ID high */ HWREG(USB0_BASE + USB_O_GPCS) |= USB_GPCS_DEVMOD_DEV;//USB_GPCS_DEVMOD_DEVVBUS