Other Parts Discussed in Thread: CC2538
The example project given in the foundation software for usb cdc works well without any modification in the code.
When I tried to add a delay of 1sec as follows,
while (1)
{
usbCdcProcessEvents();
//
// Implement COM-port loopback
//
uint16_t count = usbibufGetMaxPushCount(&usbCdcInBufferData);
uint16_t maxPopCount = usbobufGetMaxPopCount(&usbCdcOutBufferData);
if (count > maxPopCount)
{
count = maxPopCount;
}
if (count)
{
usbobufPop(&usbCdcOutBufferData, pAppBuffer, count);
usbibufPush(&usbCdcInBufferData, pAppBuffer, count);
}
SysCtrlDelay (SysCtrlClockGet ());
}
and I plug the usb cable with the EVM, the device is not getting detected and not showing any COM port....
Can somebody help ?
Thanks & Regards,
Flaby