Hi,
I'm trying to make serial logging work with a teensy 3.6 under arch linux. It used to work a few months ago but as I just reopened my project I can not make it work anymore.
I use platformio with teensyduino 1.44, but I have the same issue using arduino IDE.
Here is my test code :
The led blinks once during init, as expected, but then it will stop. The program seems to be stuck waiting for the serial to init.
Removing the while instruction fixes the issue (the led will blink) but the serial communication will not work.
Did I missed something ? I use "-D USB_SERIAL" build flag, the device seems to be well recognized by the system, and I can see the usb serial port (ttyS0).
Thanks.
I'm trying to make serial logging work with a teensy 3.6 under arch linux. It used to work a few months ago but as I just reopened my project I can not make it work anymore.
I use platformio with teensyduino 1.44, but I have the same issue using arduino IDE.
Here is my test code :
Code:
#include <Arduino.h>
void setup()
{
// initialize LED digital pin as an output.
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
Serial.begin(9600);
while(!Serial);
Serial.println("Serial ready");
}
void loop()
{
// turn the LED on (HIGH is the voltage level)
digitalWrite(LED_BUILTIN, HIGH);
Serial.println("High");
// wait for a second
delay(1000);
// turn the LED off by making the voltage LOW
digitalWrite(LED_BUILTIN, LOW);
Serial.println("Low");
// wait for a second
delay(1000);
}
The led blinks once during init, as expected, but then it will stop. The program seems to be stuck waiting for the serial to init.
Removing the while instruction fixes the issue (the led will blink) but the serial communication will not work.
Did I missed something ? I use "-D USB_SERIAL" build flag, the device seems to be well recognized by the system, and I can see the usb serial port (ttyS0).
Thanks.