Other Parts Discussed in Thread: EK-TM4C1294XL,
Hello,
I have an issue with USB module in device mode with CDC.
I ran the exactly the same code on a launchpad and it works, but on an separate microcontroller, it does not work.
I can remove any hardware issue because I am able to get in boot loader mode (Tiva firmware upgrade)
Please find attached the code for initializing the USB module.
ui32SysClock = MAP_SysCtlClockFreqSet((SYSCTL_XTAL_25MHZ | SYSCTL_OSC_MAIN | SYSCTL_USE_PLL | SYSCTL_CFG_VCO_480), 120000000); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOL); GPIOPinTypeUSBAnalog(GPIO_PORTL_BASE, GPIO_PIN_6 | GPIO_PIN_7 ); MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_USB0); USBBufferInit(&g_sTxBuffer); USBBufferInit(&g_sRxBuffer); SysCtlVCOGet(SYSCTL_XTAL_25MHZ, &ui32PLLRate); USBDCDFeatureSet(0, USBLIB_FEATURE_CPUCLK, &ui32SysClock); USBDCDFeatureSet(0, USBLIB_FEATURE_USBPLL, &ui32PLLRate); // ui32PLLRate = 240000000 ? USBDCDCInit(0, &g_psCDCDevice);
I loaded "usb_dev_cserial" example for TM4C1294XL but the device does not show up.
Is there something wrong with the frequency ?