Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

General • RP2040 USB Serial RX 12kB/s is too slow

$
0
0
Using the following code I only seem to get 12kB/s on receiving (PC->RP2040), which seems unreasonably slow. For TX, disabling the stdio UART output increased the speed to a normal one (around 500kB/s) in another project. But I didn't test RX back then (and I haven't tried TX now).
How can the receiving speed be increased to around 500kB/s?

Code:

stdio_usb_init();...char bf[0x400];if (stdio_usb_connected() && tud_cdc_available()) {   int size = tud_cdc_read(bf, sizeof(bf));}...

Statistics: Posted by wisi — Sun Nov 30, 2025 4:08 am



Viewing all articles
Browse latest Browse all 8609

Trending Articles