I am developing an app using the LM3S5749 processor in Code Red. The code calls I'm using for USB are the same as the Examples code for usb_dev_bulk for the LM3S9B92 development board. I also have CAN running on both processors, utilizing the same code in each. The XTAL is 16MHZ for both Processors. I load the same code in each and it runs fine in the LM3S9B92, but USB will not initialize in the LM3S5749 Processor or Run. Seems to be no interrupt acitivity at all. Any ideas as to what the problem is or what testing I should do to isolate the problem?? Below is the code snippets I'm using in the main():
#include
#include "driverlib/interrupt.h" #include "driverlib/sysctl.h" #include "driverlib/debug.h" #include "driverlib/gpio.h" #include "driverlib/systick.h"
#include "uartstdio.h" #include "usb_bulk_structs.h"
#include "usblib/usblib.h" #include "usblib/usb-ids.h" #include "usblib/device/usbdevice.h" #include "usblib/device/usbdbulk.h""inc/hw_memmap.h" #include "inc/hw_types.h" include "inc/hw_ints.h" #include "driverlib/rom.h" #include "driverlib/can.h"int main(void)
{
ROM_SysCtlClockSet((SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN |
SYSCTL_XTAL_16MHZ));
SysTickPeriodSet( SysCtlClockGet() / SYSTICKS_PER_SECOND ); // ROM_
SysTickIntEnable(); // ROM_
SysTickEnable(); // ROM_
USBBufferInit((tUSBBuffer *)&g_sTxBuffer);
USBBufferInit((tUSBBuffer *)&g_sRxBuffer);
USBDBulkInit(0, (tUSBDBulkDevice *)&g_sBulkDevice);
while(1)
{
}
}