Hi,
I wonder if anyone could offer some advice. I've just started playing with the Teensy 3.6 and was trying to increase the buffer size for Serial1. Having looked at previous posts I see that Serial1.c is the file to edit. However having altered the RX_BUFFER_SIZE several times with larger values each time there seems to be no difference in the amount of memory the sketch uses. To test this I opened up a new sketch as follows (with no added code):
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Setting RX_BUFFER_SIZE in Serial1.c to any size for example 64 or 64000 the sketch compiles as follows:
Sketch uses 20,592 bytes (1%) of program storage space. Maximum is 1,048,576 bytes.
Global variables use 3,968 bytes (1%) of dynamic memory, leaving 258,176 bytes for local variables. Maximum is 262,144 bytes.
However if I edit Serial3.c and change RX_BUFFER_SIZE to 64000 the sketch compiles as follows:
Sketch uses 20,600 bytes (1%) of program storage space. Maximum is 1,048,576 bytes.
Global variables use 67,904 bytes (25%) of dynamic memory, leaving 194,240 bytes for local variables. Maximum is 262,144 bytes.
Does the value of RX_BUFFER_SIZE in Serial3.c overwrite the values in Serial1.c or am I doing something wrong.
Thanks in advance.
I wonder if anyone could offer some advice. I've just started playing with the Teensy 3.6 and was trying to increase the buffer size for Serial1. Having looked at previous posts I see that Serial1.c is the file to edit. However having altered the RX_BUFFER_SIZE several times with larger values each time there seems to be no difference in the amount of memory the sketch uses. To test this I opened up a new sketch as follows (with no added code):
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Setting RX_BUFFER_SIZE in Serial1.c to any size for example 64 or 64000 the sketch compiles as follows:
Sketch uses 20,592 bytes (1%) of program storage space. Maximum is 1,048,576 bytes.
Global variables use 3,968 bytes (1%) of dynamic memory, leaving 258,176 bytes for local variables. Maximum is 262,144 bytes.
However if I edit Serial3.c and change RX_BUFFER_SIZE to 64000 the sketch compiles as follows:
Sketch uses 20,600 bytes (1%) of program storage space. Maximum is 1,048,576 bytes.
Global variables use 67,904 bytes (25%) of dynamic memory, leaving 194,240 bytes for local variables. Maximum is 262,144 bytes.
Does the value of RX_BUFFER_SIZE in Serial3.c overwrite the values in Serial1.c or am I doing something wrong.
Thanks in advance.