when i config usb in bootloader, it's works well .The configuration is as following:
/* Initializing the ARM Interrupt Controller. */
IntAINTCInit();
/* Enabling IRQ in CPSR of ARM processor. */
IntMasterIRQEnable();
// config the USB module.
// USB module clock enable
USB0ModuleClkConfig();
/* Configuring AINTC to receive USB0 interrupts. */
USB0AINTCConfigure();
// UPD Pin setup
UPDNPinControl();
/* NAND Pin mux and clock setting */
NANDPinMuxSetup();
GPMCClkConfig();
EDMAModuleClkConfig();
//Delay timer setup
DelayTimerSetup();
enableModuleClock(CLK_TIMER7);
/* Enable the WDT clocks */
WatchdogTimer1ModuleClkConfig();
/* Reset the Watchdog Timer */
WatchdogTimerReset(SOC_WDT_1_REGS);
/* Disable the Watchdog timer */
WatchdogTimerDisable(SOC_WDT_1_REGS);
/* Perform the initial settings for the Watchdog Timer */
WatchdogTimerSetUp();
// Initialize the transmit and receive buffers.
USBBufferInit((tUSBBuffer *)&g_sTxBuffer);
USBBufferInit((tUSBBuffer *)&g_sRxBuffer);
// Pass our device information to the USB library and place the device
// on the bus.
USBDBulkInit(0, (tUSBDBulkDevice *)&g_sBulkDevice);
--------------------------------------------------------------------------------
but when i reconfig it in my os , just aften run into the main, it stops where i enable the usb interrupt.
the configuration is just the same as that in the bootloader.
Can anyone help out of this problem ?