As per the title. How do I change Serial buffer size on a Grand Central M4 using platformio?
I tried using:
build_flags = -D SERIAL_BUFFER_SIZE=1024
In platformio.ini
The first error message part is:
src/variant.h:4: warning: “SERIAL_BUFFER_SIZE” redefined
4 | #define SERIAL_BUFFER_SIZE 256
|
: note: this is the location of the previous definition
Subsequent error messages are to do with the libraries that I am using like <Wire.h>.
I don’t see any other way to influence the buffer size but to path the Uart.h file, as it won’t let itself be influenced by any global defines. I’ve opened an issue for that in
if you don’t want to do this dynamic scripting / patching, you can also use platform_packages to point to a one-time fixed version of the package (arduino framework).