Replies: 1 comment
-
As the matter of the fact, weird things start to happen when I set the https://github.com/hathach/tinyusb/blob/master/src/class/cdc/cdc_device.c#L435 If the So what I found coincidental, and that it seems to be true, is that the
But not this:
Going further, I started to wonder whether this line is by design: https://github.com/hathach/tinyusb/blob/master/src/class/cdc/cdc_device.c#L69 Because if I change 'CFG_TUSB_MEM_ALIGN uint8_t epout_buf[CFG_TUD_CDC_EP_BUFSIZE]; I would appreciate all help in understanding this... |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am using the CDC device as a logger in my application. I am low on RAM resource and I would like to completely disable CDC RX functionality, as it is not needed in the application. I could not find any dedicated way for doing that. I have noticed that I can reduce the
CFG_TUD_CDC_RX_BUFSIZE
to a low value (even down to 0), but then the CDC TX parts starts to act in an unexpected way- the sent out data is being stalled until I reset the port (reopen) from the host side. I don't want to go into unnecessary details here, as maybe simply I am not using the CDC code part correctly.In other words: What should I do/ call, in an application in which the CDC RX part is not needed and I don't want to read any data?
I would appreciate all help!
Beta Was this translation helpful? Give feedback.
All reactions