-
Hi community, Thanks in advance for any hint ! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Tested with PI Pico, using latest https://github.com/miguelbalboa/rfid Runs fine on first attempt. Please retry it and post your defined problem (i.e. sketch example) |
Beta Was this translation helpful? Give feedback.
-
Hi, I to am having problems in trying to get an MFRC522 working with Arduino-Pico and a RPi Pico. I have followed Madius123 to the letter and when I try to verify/compile, I just get an 'Exit Status 1' error along with the following error message: c:\Users\steph\Documents\Arduino\libraries\rfid-master\src\MFRC522Extended.cpp:847:42: error: ordered comparison of pointer with integer zero ('byte*' {aka 'unsigned char*'} and 'int') Being a bit of a 'Newbie' with all this, I'm not sure what the above error message is trying to tell me. These sketches verify/compile and run fine on my Arduino Nano/Uno/Mega boards and an ESP32 Wroom. It is only when trying to use the RPi Pico that I get this problem. I have made sure that the cable connections are good and the Reader and RPi are working correctly. I have noticed elsewhere on the web that this seems to be a problem. I would be very grateful for any suggestions. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your suggestion, much appreciated. I am also using the MFRC522 library with other boards, such as various Arduino's and ESP32's. The library works fine with them. My concern is that if I alter the library to work on a RPi Pico, will it 'break' the library for these other boards? |
Beta Was this translation helpful? Give feedback.
-
Earle, It worked! Thank you very much for your suggestion. I modified the library as suggested. It actually needed altering at Line 824 and Line 847. The code now compiles correctly and successfully uploads onto my RPi Pico W's. I connected an MFRC522 reader and the Pico successfully read the card and displayed on the Serial Monitor. During compiling, you do get a warning that the MFRC522 is not guaranteed to work, but the code compiles nevertheless and certainly seems to work. Thanks again |
Beta Was this translation helpful? Give feedback.
Tested with PI Pico, using latest https://github.com/miguelbalboa/rfid
Device: "RFID-RC522" -> the standard china blue PCB
Test sketch: "Dump Info"
Connected PIns:
(MFRC522 Module - RP2040)
SDA: GP17 (= CS)
SCK: GP18 (standard SPI0)
MOSI: GP19 (standard SPI0)
MISO: GP16: (standard SPI0)
IRQ: NC (for this sketch not needed)
RST: GP9
Runs fine on first attempt.
Please retry it and post your defined problem (i.e. sketch example)