rfid icon indicating copy to clipboard operation
rfid copied to clipboard

Teensy 4.1 fails to read version with 1.4.10

Open bigoren opened this issue 2 years ago • 2 comments

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);
}

bigoren avatar Dec 07 '22 22:12 bigoren

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

Rotzbua avatar Dec 14 '22 14:12 Rotzbua

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

Rotzbua avatar Dec 29 '23 23:12 Rotzbua