Jump to content
43oh

albert

Members
  • Content Count

    1
  • Joined

  • Last visited

Reputation Activity

  1. Like
    albert got a reaction from Fmilburn in [Energia Library] NFC card reading with Energia - MF RC 522   
    Hi! I got my RC522 up and running this morning and just thought I'd share what worked for me..
     
    I tried running three different Energia-versions of the library, but none of them worked. I tried printing the status and it was always 2 (MI_ERR), just like tobydjones reported earlier.
     
    What worked was grabbing the latest Arduino version as suggested by Fmilburn.
    Downloaded the latest version here: https://github.com/miguelbalboa/rfid. Placed that folder in my libraries folder. When trying to compile, Energia complains that "beginTransaction" and "endTransaction" does not exist in the SPI class. Just open MFRC522.cpp (it's in that folder) and comment out every line with either (I found 8 in total). Now the examples should compile fine. I changed to the following because I already had those pins hooked up from using the other examples:
    #define SS_PIN 8 // Same as CS pin in the other examples #define RST_PIN 10 // Same as NRSTPD pin in the other examples  
    Not sure why none of the others were working.. Took me quite a while to figure out! Oh and I am using Energia 16 on OS X and MSP-EXP430G2553 LaunchPad.
  2. Like
    albert got a reaction from bluehash in [Energia Library] NFC card reading with Energia - MF RC 522   
    Hi! I got my RC522 up and running this morning and just thought I'd share what worked for me..
     
    I tried running three different Energia-versions of the library, but none of them worked. I tried printing the status and it was always 2 (MI_ERR), just like tobydjones reported earlier.
     
    What worked was grabbing the latest Arduino version as suggested by Fmilburn.
    Downloaded the latest version here: https://github.com/miguelbalboa/rfid. Placed that folder in my libraries folder. When trying to compile, Energia complains that "beginTransaction" and "endTransaction" does not exist in the SPI class. Just open MFRC522.cpp (it's in that folder) and comment out every line with either (I found 8 in total). Now the examples should compile fine. I changed to the following because I already had those pins hooked up from using the other examples:
    #define SS_PIN 8 // Same as CS pin in the other examples #define RST_PIN 10 // Same as NRSTPD pin in the other examples  
    Not sure why none of the others were working.. Took me quite a while to figure out! Oh and I am using Energia 16 on OS X and MSP-EXP430G2553 LaunchPad.
×
×
  • Create New...