DumpInfo.ino compilation errors:
/home/rkuo/Arduino/libraries/RFID-RC522/MFRC522.cpp: In member function ‘void MFRC522::PCD_WriteRegister(byte, byte)’:
/home/rkuo/Arduino/libraries/RFID-RC522/MFRC522.cpp:42:61: error: ‘SPI_MODE0’ was not declared in this scope
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
^~~~~~~~~
/home/rkuo/Arduino/libraries/RFID-RC522/MFRC522.cpp: In member function ‘void MFRC522::PCD_WriteRegister(byte, byte, byte*)’:
/home/rkuo/Arduino/libraries/RFID-RC522/MFRC522.cpp:58:61: error: ‘SPI_MODE0’ was not declared in this scope
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
^~~~~~~~~
/home/rkuo/Arduino/libraries/RFID-RC522/MFRC522.cpp: In member function ‘byte MFRC522::PCD_ReadRegister(byte)’:
/home/rkuo/Arduino/libraries/RFID-RC522/MFRC522.cpp:75:61: error: ‘SPI_MODE0’ was not declared in this scope
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
^~~~~~~~~
/home/rkuo/Arduino/libraries/RFID-RC522/MFRC522.cpp: In member function ‘void MFRC522::PCD_ReadRegister(byte, byte, byte*, byte)’:
/home/rkuo/Arduino/libraries/RFID-RC522/MFRC522.cpp:99:61: error: ‘SPI_MODE0’ was not declared in this scope
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
^~~~~~~~~
/home/rkuo/Arduino/libraries/RFID-RC522/MFRC522.cpp: In member function ‘MFRC522::StatusCode MFRC522::PCD_NTAG216_AUTH(byte*, byte*)’:
/home/rkuo/Arduino/libraries/RFID-RC522/MFRC522.cpp:1137:7: warning: unused variable ‘cmdBufferSize’ [-Wunused-variable]
byte cmdBufferSize = sizeof(cmdBuffer);
^~~~~~~~~~~~~
Previously, we updated SPI.h and mapped SPI_MODE0 to the name often used for third party libraries. May I know which version of SDK you are currently using?
Can you try on the early release version, 3.1.8-build20250321? It should solve the error: ‘SPI_MODE0’ was not declared in this scope. You may need to modify the API in MFRC522.cpp as the pin variable name used might be different from our SDK.