Tool/software: Code Composer Studio
Hi,
I am using dk tm4c129xnczad controller interfacing with sensor here i captured all the data in the controller so i need to transfer all these data to the pc through usb.I have tried with the below below program but it is not working means it is going inside the function then it is stucking over there not executing further instructions not even going to first instruction ie USBDevConnect(USB0_BASE); stucking at this point so can you plz help me to resolve this issue.
void usb_trans()
{
uint8_t data="hell0";
Display(("usd.\r\n"));
USBDevConnect(USB0_BASE);
USBDevMode(USB0_BASE);
USBDevEndpointConfigGet(USB0_BASE, USB_EP_1, 10, USB_EP_MODE_BULK | USB_EP_DEV_OUT);
//
// Configure FIFO as a device IN endpoint FIFO starting at address 64
// and is 64 bytes in size.
USBFIFOConfigSet(USB0_BASE, USB_EP_1, 64, USB_FIFO_SZ_64, USB_EP_DEV_IN);
//
// Put the data in the FIFO.
USBEndpointDataGet(USB0_BASE, USB_EP_1, &data, 64);
//
// Start the transmission of data.
USBEndpointDataSend(USB0_BASE, USB_EP_1, USB_TRANS_IN);*/
}