hi all,
i am using PART_TM4C1237H6PZ controller, i build code on ccs it is working fine,but when i tried the same code on keil it is not working. I am not getting interrupt on USB. my USB configuration is as bellow.
USBStackModeSet(0, eUSBModeForceHost, 0);
SysCtlPeripheralEnable(SYSCTL_PERIPH_USB0);
// // Configure the required pins for USB operation. // GPIOPinConfigure(GPIO_PF4_USB0EPEN); // GPIOPinConfigure(GPIO_PF5_USB0PFLT); // GPIOPinTypeUSBAnalog(GPIO_PORTB_BASE, GPIO_PIN_0 | GPIO_PIN_1); //id vbs GPIOPinTypeUSBDigital(GPIO_PORTF_BASE, GPIO_PIN_4 | GPIO_PIN_5); //- GPIOPinTypeUSBAnalog(GPIO_PORTJ_BASE, GPIO_PIN_0 | GPIO_PIN_1); //dp dm
// // Configure SysTick for a 100Hz interrupt. // SysTickPeriodSet(SysCtlClockGet() / TICKS_PER_SECOND); SysTickEnable(); SysTickIntEnable();
// // Enable Interrupts // IntMasterEnable(); // // Initialize the USB stack mode and pass in a mode callback. // USBStackModeSet(0, eUSBModeHost, ModeCallback);
// // Register the host keyboard drivers. // USBHCDRegisterDrivers(0, g_ppHostClassDrivers, g_ui32NumHostClassDrivers); USBHCDInit(0, g_pui8HCDPool, HCD_MEMORY_SIZE); USBHCDPowerConfigInit(0, USBHCD_VBUS_AUTO_HIGH );
// // Open an instance of the keyboard driver. The keyboard does not need // to be present at this time, this just save a place for it and allows // the applications to be notified when a keyboard is present. // g_psKeyboardInstance = USBHKeyboardOpen(KeyboardCallback, g_pui8Buffer, KEYBOARD_MEMORY_SIZE);
Regards,
Dhanush
Well, if the code is the same, where do you think you should be looking for differences...?
Have you tried stepping the working one in CCS, and the other in Keil to see where they differ?