Skip to content

analogRead() freezing on several Trinkey boards #343

Open
@caternuson

Description

@caternuson

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:

  • PID 4870 - Adafruit NeoPixel Trinkey M0 (SAMD21) freezes
  • PID 4964 - Adafruit Rotary Trinkey M0 (SAMD21) freezes
  • PID 5020 - Adafruit NeoKey Trinkey M0 (SAMD21) freezes
  • PID 5021 - Adafruit Slide Trinkey M0 (SAMD21) works
  • PID 5022 - Adafruit ProxLight Trinkey M0 (SAMD21) works

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions