Hi, this is the code from the tivaware example of USB bulk device:
FPULazyStackingEnable(); SysCtlClockSet(SYSCTL_SYSDIV_2_5 | SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ | SYSCTL_OSC_MAIN); IntMasterEnable(); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF); PIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_3|GPIO_PIN_2); g_bUSBConfigured = false; SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOL); GPIOPinTypeUSBAnalog(GPIO_PORTB_BASE, GPIO_PIN_0 | GPIO_PIN_1); GPIOPinTypeUSBAnalog(GPIO_PORTL_BASE, GPIO_PIN_6 | GPIO_PIN_7); SysTickPeriodSet(SysCtlClockGet() / SYSTICKS_PER_SECOND); SysTickIntEnable(); SysTickEnable(); USBBufferInit(&g_sTxBuffer); USBBufferInit(&g_sRxBuffer); USBStackModeSet(0, eUSBModeDevice, 0); USBDBulkInit(0, &g_sBulkDevice);
Here my TX function:
g_bUSBConfigured = true;
//
// Flush our buffers.
//
//
GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_3, GPIO_PIN_3);
USBBufferFlush(&g_sTxBuffer);
USBBufferFlush(&g_sRxBuffer);
I am wondering why the Kit doesn t get into USB when i switched it to Device mode, the green led doesn t light.
I got all the proper drivers install and i got the bulk example window side cmd prompt application. Actually, I manage to transform the kit into a transmitter
from the stellarisware example therefore I know that the "old" code is working. But now I need to use Tivaware.
Any suggesiton?
Mathieu L.