CLRC663 Authentication Failed – 0x0201

Forum / MIFARE and NFC Reader IC`s / CLRC663 Authentication Failed – 0x0201

  • 12. February 2014 at 12:10
    I'm using NXP's reader library to control a CLEV663B blueboard via I2C. After detecting the presence of a tag I attempt to authenticate with it by using the library function 'phalMfc_Authenticate()' but I get a return code of 0x0201 (PH_ERR_IO_TIMEOUT).

    I've ported an example application to a different NXP uC and the error seems to be because an interrupt isn't firing and authentication is timing out. What interrupt do I need to enable and how do I go about doing it in the Keil MDK (v5)?

    Thanks in advance
    + 0  |  - 0

    Re: CLRC663 Authentication Failed – 0x0201

    22. January 2016 at 12:51
    Hi NFCuser,

    I cannot say anything to the NXP Reader Library, but you can program the CLRC663 directly via writing and reading the registers. To authenticate with a MIFARE key you have to do the following steps:

    1. 1. Write the key (the default key is FFFFFFFFFFFF) into the Fifo (register 05),
      command: FF into 05,

    2. command: FF into 05,
    3. command: FF into 05,
    4. command: FF into 05,
    5. command: FF into 05,
      command: FF into 05.
    6. 2. Send the LoadKey
      command: 02 into 00.

    7. 3. Maybe wait.

    8. 4. Write the value 60 into Fifo,
      command: 60 into 05,
      command: 00 into 05.

    9. 5. Write the first four bytes of UID into Fifo,
      command: UID0 into 05,
      command: UID1 into 05,
      command: UID2 into 05,
      command: UID3 into 05.

    10. 6. Start MIFARE Authenticate
      command: 03 into 00.

    11. 7. Maybe wait.

    12. 8. Read error register
      command read 0A.

    13. 9. Check length of reply
      command: read 04

    14. 10. Read reply bytes (length previously read)
      command: read 05 x times (x is the length)



    I hope it helps.
    Kind regards,
    The MIFARE Team
    + 0  |  - 0
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.