This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC17xx usb cdc SOF?

Hi,

I'm trying to send some data from my usb device to the host by a virtual com port CDC. Is it the only solution to write these data to the endpoint(in) in the SOF ISR? Sending data to the usb device from the host is working.

#if USB_SOF_EVENT
void USB_SOF_Event (void)
{
    USB_WriteEP( USB_ENDPOINT_IN(2), &TestData[0], 64 );  // send 64 bytes data

}

Has someone a small example (using two CDCs)? With the code above, the SOF interrupts occurs only 4x times after enabling the com port on the host. After that no further SOF will be generated. Using Readfile() returns true - but there's definitely no traffic on the usb bus.

best regards
Jan

0