I'm using a Teensy 3.2, Arduino IDE 1.8.9 and teensyduino 1.46.
I found some useful tips in https://forum.pjrc.com/threads/4947...rial-buffer-size?highlight=serial+buffer+size and other places.
I have been changing the value in the line from serial2.c:
I have been forcing a rebuild all by changing the optimiztation between "faster" and "fastest". The verbose compile message shows
I found the referenced file and it is a couple of days old. That means at some point there was a real rebuild but I don't know what caused it. I've tried changing the extension of a renamed copy of the original serial2.c but there was no improvement.
I have a few questions:
How can I reliably cause a full rebuild? Will that actually change the buffer size?
How can I access the value of SERIAL2_RX_BUFFER_SIZE from the main program?
Thanks,
John
I found some useful tips in https://forum.pjrc.com/threads/4947...rial-buffer-size?highlight=serial+buffer+size and other places.
I have been changing the value in the line from serial2.c:
#ifndef SERIAL2_RX_BUFFER_SIZE
#define SERIAL2_RX_BUFFER_SIZE 2048 // number of incoming bytes to buffer
I'd like to get it up to 5000 or so.#define SERIAL2_RX_BUFFER_SIZE 2048 // number of incoming bytes to buffer
I have been forcing a rebuild all by changing the optimiztation between "faster" and "fastest". The verbose compile message shows
Using core 'teensy3' from platform in folder: C:\Program Files\Arduino\hardware\teensy\avr
Build options changed, rebuilding all
but further into the messages it saysBuild options changed, rebuilding all
Compiling core...
Using precompiled core: C:\Users\DHP-1006\AppData\Local\Temp\arduino_cache_942169\core\core_teensy_avr_teensy31_usb_serial,speed_96,opt_o2std,keys_en-us_71a00981eaa0bad0868b6b2ed88d327b.a
Linking everything together...
Using precompiled core: C:\Users\DHP-1006\AppData\Local\Temp\arduino_cache_942169\core\core_teensy_avr_teensy31_usb_serial,speed_96,opt_o2std,keys_en-us_71a00981eaa0bad0868b6b2ed88d327b.a
Linking everything together...
I found the referenced file and it is a couple of days old. That means at some point there was a real rebuild but I don't know what caused it. I've tried changing the extension of a renamed copy of the original serial2.c but there was no improvement.
I have a few questions:
How can I reliably cause a full rebuild? Will that actually change the buffer size?
How can I access the value of SERIAL2_RX_BUFFER_SIZE from the main program?
Thanks,
John