Forum / MIFARE and NFC Reader IC`s / CLRC663 Authentication Failed – 0x0201
-
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
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. Write the key (the default key is FFFFFFFFFFFF) into the Fifo (register 05),
command: FF into 05, - command: FF into 05,
command: FF into 05, - 2. Send the LoadKey
command: 02 into 00. - 3. Maybe wait.
- 4. Write the value 60 into Fifo,
command: 60 into 05,
command: 00 into 05. - 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. - 6. Start MIFARE Authenticate
command: 03 into 00. - 7. Maybe wait.
- 8. Read error register
command read 0A. - 9. Check length of reply
command: read 04 - 10. Read reply bytes (length previously read)
command: read 05 x times (x is the length)
command: FF into 05,
command: FF into 05,
command: FF into 05.
I hope it helps.
Kind regards,
The MIFARE Team
+ 0 | - 0
- 1. Write the key (the default key is FFFFFFFFFFFF) into the Fifo (register 05),
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.