adafruit / ArduinoCore-samd

116 stars 119 forks source link

analogRead() freezing on several Trinkey boards #343

Open caternuson opened 1 year ago

caternuson commented 1 year ago

Test sketch:

int count = 0;

void setup() {
  Serial.begin(9600);
  while (!Serial);
}

void loop() {
  Serial.println(count++);
  if (count > 5) {
    Serial.println(analogRead(A1));  
  }
  delay(1000);
}

Mixed results on several Trinkey products:

Example output for sketch that works (PID 5022): Screenshot from 2023-05-18 15-07-51

Example output for sketch that freezes (PID 4870): Screenshot from 2023-05-18 15-12-21 NOTE - closing Serial Monitor requires resetting the board