padvinder95
Member
Dear all,
I have a Teensy LC with which I want to do 9-bit serial communication. For this, I have uncommented the
line in HardwareSerial.h. I attempt to open the serial port using
and I get no compiler errors. (I.e. the 9-bit support was successfully enabled, or the SERIAL_9O1 wouldn't have been defined.)
However, when I run this 'sketch,' it seems to hang on the Serial2.begin line. Indeed, modifying the setup function to
shows an A but not a B in the serial monitor in Arduino.
The same code does work on a Teensy 3.2.
Any ideas what's going wrong?
Full disclosure: I am using the official mavlink-2 C library and a JetiEX library together, to pass data from an autopilot over the JETI telemetry system. This setup worked on 3.2 but when I tried on LC it hung. I narrowed it down to the Serial2.begin statement of the library; putting this statement (Serial2.begin(9600, SERIAL_9O1)) manually in setup() caused the same problem. Then I had no more time to make a minimal sketch that only includes the Serial begin calls and nothing else, and now I don't have the teensies available until tomorrow. I will of course try to make an MWE (well, not-working example) then, but the program really does hang on the Serial2.begin statement.
I have a Teensy LC with which I want to do 9-bit serial communication. For this, I have uncommented the
Code:
#define SERIAL_9BIT_SUPPORT
Code:
Serial2.begin(9600, SERIAL_9O1);
However, when I run this 'sketch,' it seems to hang on the Serial2.begin line. Indeed, modifying the setup function to
Code:
Serial.begin(115200);
Serial.print("A");
Serial2.begin(9600, SERIAL_9O1);
Serial.print("B");
The same code does work on a Teensy 3.2.
Any ideas what's going wrong?
Full disclosure: I am using the official mavlink-2 C library and a JetiEX library together, to pass data from an autopilot over the JETI telemetry system. This setup worked on 3.2 but when I tried on LC it hung. I narrowed it down to the Serial2.begin statement of the library; putting this statement (Serial2.begin(9600, SERIAL_9O1)) manually in setup() caused the same problem. Then I had no more time to make a minimal sketch that only includes the Serial begin calls and nothing else, and now I don't have the teensies available until tomorrow. I will of course try to make an MWE (well, not-working example) then, but the program really does hang on the Serial2.begin statement.