Serial Monitor Weirdness

I’m using PlatformIO (latest version) on vs code (latest version) on openSUSE 15.0 with a teensy 3.6 as a target. With this program:

#include <Arduino.h>
void setup() {
Serial.begin(9600);
}

long k = 0;
void loop() {
delay(500);
Serial.println(k++);
}

I get:

Executing task: platformio device monitor <
— Miniterm on /dev/ttyACM0 9600,8,N,1 —
— Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H —
0
1
2
3
4

— exit —

Terminal will be reused by tasks, press any key to close it.

And that’s it!!!

The digits are about 1/2 second apart. Does anyone have any idea what is going wrong here? Thank you…J

Did you install the udev rules which prevent dev/ttyACM* to be accessed by Linux’s modem manager? (refer here)

That’s it! Thanks for the guidance Max - perfect.

I hope you did it the way PlatformIO suggested you and didn’t add your own custom rule :sweat_smile:, forgot the docs

The PIO documentation is here: Redirecting...

1 Like