Hi there,
so I am trying to run my tiva c in usb host mode in order to connect a usb stick to the board, however i run into my faultISR on this line :
GPIOPinTypeUSBDigital(GPIO_PORTH_BASE, GPIO_PIN_3 | GPIO_PIN_4);
when i try to run the code from the tivaware usb manual
// // Enable Clocking to the USB controller. // SysCtlPeripheralEnable(SYSCTL_PERIPH_USB0); // // Enable the peripherals used by this example. // SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOH); // // Set the USB0EPEN and USB0PFLT pins to be controlled by the USB // controller. // GPIOPinTypeUSBDigital(GPIO_PORTH_BASE, GPIO_PIN_3 | GPIO_PIN_4); // // Register the host class drivers. // USBHCDRegisterDrivers(0, g_ppsUSBHostClassDrivers, g_ui32NumHostClassDrivers); // // Call any open routines on the device class interfaces here so that they // are ready to receive callbacks if the device is already inserted on // power on. // USBHMSCDriveOpen(0, MSCCallback); // // Initialize the host controller. // USBHCDInit(0, g_pui8HCDPool, HCD_MEMORY_SIZE); tUSBHMSCInstance* device = USBHMSCDriveOpen(0, mscCallback); while(USBHMSCDriveReady(device)) { } printf("Done initializing.\n");
I read something about 0-ohm resistors that need to be present for otg/host mode to work, is this related to my problem? If so, how would I go about attaching them to R25 and R29 on my tiva c?
Sorry If this sounds very newbish, however it is one of my first mc projects.
Thanks for the help.