Do you stop any other programs that access the teensy’s serial port before you upload, and only open one serial monitor program after the program was uploaded?
Pretty sure that no other programs are accessing /dev/ttyACM0, this is the exact sketh just a Teensy 4.0 hooked up to a Bosch BMI088 IMU sensor (side note I can’ even run a simple Serial.println("Hello World") either)
#include "BMI088.h"
Bmi088Accel accel(Wire,0x18);
Bmi088Gyro gyro(Wire,0x68);
void setup()
{
/* USB Serial to print data */
Serial.begin(9600);
while(!Serial) {}
/* start the sensors */
accel.begin();
gyro.begin();
}
void loop()
{
// read the sensors
accel.readSensor();
gyro.readSensor();
Serial.println(accel.getAccelX_mss());
/* delay to help with printing */
delay(20);
}
Hm, if the Udev rules are installed and you rebooted, there shouldn’t be any Linxu modem manager trying to access the device anymore… Not sure what’s going on there, maybe try filing an issue at Issues · platformio/platform-teensy · GitHub.