Commit 04b5120
committed
raspberrypi: bump MSC buffer to 16KB for RP2040 boards with SD-over-MSC
On Adafruit Feather RP2040 Adalogger and similar RP2040 boards that
expose an SD card as a second USB MSC LUN, the default 1024-byte MSC
buffer triggers bulk-IN endpoint stalls on macOS during multi-sector
READ(10) probes. macOS retries ~18 times over 5 minutes then gives up;
Linux handles the same firmware cleanly.
Bumping CFG_TUD_MSC_BUFSIZE to 16384 clears the stall. This PR only
applies the bump when CHIP_VARIANT=RP2040 and CIRCUITPY_SDCARDIO=1,
so RP2350 boards and non-SD RP2040 boards keep the small buffer and
the ~15KB RAM cost.
This is a stopgap workaround. Metro RP2350 and Fruit Jam (both RP2350)
handle the same macOS traffic fine at 1024 bytes, so the underlying
issue is almost certainly in the RP2040 USB peripheral or tinyusb's
rp2 device driver. Root-cause ticket will be filed separately.1 parent 26f70c1 commit 04b5120
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | 203 | | |
205 | 204 | | |
206 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
207 | 219 | | |
208 | 220 | | |
209 | 221 | | |
| |||
0 commit comments