Pico SDK programs I believe use '~/pico/pico-sdk/src/rp2_common/pico_stdio_usb/include/tusb_config.h' by default and that has the buffer size hard-wired to 256 -There's no '#if ndef' or similar around that so no chance of passing in an override from 'CMakeLists.txt'.
It is possible to have a local 'tusb_config.h' in your project and build with that, where you can set the buffer size larger and still have 'printf' and the 'stdio' stuff work, but I can't recall the details to do it. I do recall it involved jumping through some hoops.
This may help - viewtopic.php?t=344300 - but that's Pico SDK 1.4.0 and things may have changed.
Code:
#define CFG_TUD_CDC_TX_BUFSIZE (256)
It is possible to have a local 'tusb_config.h' in your project and build with that, where you can set the buffer size larger and still have 'printf' and the 'stdio' stuff work, but I can't recall the details to do it. I do recall it involved jumping through some hoops.
This may help - viewtopic.php?t=344300 - but that's Pico SDK 1.4.0 and things may have changed.
Statistics: Posted by hippy — Tue Jan 30, 2024 6:01 pm