USB ConfigFS + FunctionFS: read() of endpoint bundles packets

Dear raja

yes, the 8KB buffer size fixes the issue. In our application we want to transmit packets with a various sizes. They range from few bytes to quite a number of kB. So the workaround to split the read and put the the data into a bigger buffer in userspace is the best I can do at the moment.

Neverthless thank you for your support!

Long story short:

the cause of the problem is hidden somewhere in the kernel, but could not be found. Buffer sizes less than or equal to 20 kB seems to work.

A possible workaround for bigger buffers is to split the read and put the the data into the buffer in userspace.

Dear @Mowlwurf,

Thanks for letting us know the workaround works for you. Wish you good luck with your product development!.

I’ve just checked this topic again with BSP v5.0.0 and SOMs with iMX7 and iMX8M, but the issue is still present.

Hi @Mowlwurf

Thanks for letting us know.

Best regards,
Jaski