Skip to main content
Associate II
March 18, 2026
Solved

ST25R100 Read data in Mifare Classic Card

  • March 18, 2026
  • 1 reply
  • 606 views

Hello. I used ST25R100 to read the data in Mifare Classic Card. I'm using X-CUBE-NFC9 library. But I can't receive valid Token RB in Authentication steps.

If ST25R100 can read the data in Mifare Classic Card? How do I communicate and exchange data with Mifare Classic Card? Is there a demo for this?

This topic has been closed for replies.
Best answer by Ulysses HERNIOSUS

Hi,

I think you are referring to https://community.st.com/t5/st25-nfc-rfid-tags-and-readers/nfc0541-read-mifare-classic-1k/m-p/255216/highlight/true#M5178

The caveat is that transmission is LSB first. 

a2 0f 00 00 00 00 db d5
 2 a f 0 0 0 0 0 0 0 0 0 b d 5 d 
0100 0101 0 1111 0000 1 0000 0000 1 0000 0000 1 0000 0000 1 0000 0000 1 1101 1011 1 1010 1011 0

0100 0101 0111 1000 0100 0000 0010 0000 0001 0000 0000 1000 0000 0111 0110 1111 0101 0110
 2 a e 1 2 0 4 0 8 0 0 1 0 e 6 f a 6
a2 1e 02 04 08 10 e0 f6 6a

 

BR, Ulysses

1 reply

Ulysses HERNIOSUS
Technical Moderator
March 18, 2026
wenjieAuthor
Associate II
March 19, 2026

May I ask how do you shift from a2 0f 00 00 00 00 db d5 to a2 1e 02 04 08 10 e0 f6 6a?

If I want to send 60 04 and CRC d1 3d (0110 0000 0000 0100 1101 0001 0011 1101). After adding parity, shouldn't it be 60 82 04 c7 a0(01100000 1 00000100 0 00010011 0 00111101 0 0000 ).

and should the code be "err = rfalTransceiveBlockingTxRx(AuthTxBuf, sizeof(AuthTxBuf), AuthRxBuf, sizeof(AuthRxBuf), AuthActLen, RFAL_TXRX_FLAGS_CRC_TX_MANUAL | RFAL_TXRX_FLAGS_PAR_TX_NONE | RFAL_TXRX_FLAGS_CRC_RX_KEEP|RFAL_TXRX_FLAGS_PAR_RX_KEEP|RFAL_TXRX_FLAGS_CRC_RX_MANUAL, 71680U);" ?