Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: T3.2 Hardware Serial RX buffer size change

  1. #1
    Junior Member
    Join Date
    Jun 2020
    Posts
    1

    T3.2 Hardware Serial RX buffer size change

    Hi all,
    just cheched the Forum and Google but I did not found an answer.
    I need to increase the RX buffer of hardwarewserial e.g. hardwareserial3 to 128 or 256 byte.
    Standard seems to be just 64 - at least in my environment ... !?
    I do not find any buffer size entry possibility in the .h or .cpp files?

    Have anybody of you a solution/hint for me?
    Thanks
    Klaus

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    11,780
    In :: ...\hardware\teensy\avr\cores\teensy3\serial3.c

    look for >> #define SERIAL3_RX_BUFFER_SIZE 64 // number of incoming bytes to buffer

    On Teensy 3.2 best to use Serial1 or Serial2 as they are backed by an 8 byte FIFO to help transfer integrity with fewer interrupts. Serial3 works of course - but at high baud rates it will be more overhead.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •