Skip to content

Teensy 4.1 fails to read version with 1.4.10 #591

Open

Description

@bigoren

Step 1: Describe your environment

  • OS version: Windows
  • Arduino IDE version: VSCode with PIO, Teensyduino 1.56
  • MFRC522 Library version: 1.4.10
  • Arduino device: Teensy 4.1
  • MFRC522 device: MIFARE1K

Step 2: Describe the problem

When working with version 1.4.10 reading the VersionReg returns 0x0 instead of the expected 0x92,
Reverting back to 1.4.9 fixes the issue

Steps to reproduce:

  1. Initialize MFRC522 device
  2. Read VersionReg
  3. Print result

Observed Results:

0x0 printed

Expected Results:

0x92 print

Relevant Code:

void setup() {
  SPI.begin();     // Init SPI bus
  rfid.PCD_Init(); // Init MFRC522
  /* read and printout the MFRC522 version (valid values 0x91 & 0x92)*/
  Serial.print(F("RFID Reader version: 0x"));
  byte readReg = rfid.PCD_ReadRegister(rfid.VersionReg);
  Serial.println(readReg, HEX);
}

Activity

  1. added
    bug 🐛
    on Dec 14, 2022
  2. Rotzbua commented on Dec 14, 2022

    @Rotzbua
    Collaborator

    Function change was #569
    Maybe teensy handles yield() different than Arduino & ESP.

  3. Rotzbua commented on Dec 29, 2023

    @Rotzbua
    Collaborator

    @bigoren Have you tried to fix it or have a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions