This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Getting Error-!! 00 bytes and 04 bits received, expected 4 bytes and 0 bits. Abort

Other Parts Discussed in Thread: MSP430F2370, TRF7970A

Hello,

I am working on MSP430F2370 microntroller with TRF7970A reader IC.I am using MIFARE Classic 1k tags.I have dumped the code for MIFARE Classic 1k Tag Authentication. i have changed the code to work at 9600 baud rate.

I am getting the following error after Crypto1 set key.Initialization ok.

!! 00 bytes and 04 bits received, expected 4 bytes and 0 bits. Abort

Following is the LOG file generated in the GUI.

12:02:39.791 --> 0108000304FF0000
12:02:39.899 <-- 0108000304FF0000
TRF7970A EVM

12:02:39.900 **** COM Port found! ****
12:02:42.607 --> 010A0003041000010000
12:02:42.610 \\.\COM14
12:02:42.764 --> 010C00030410002101080000
12:02:42.875 <-- 010A0003041000010000
Register write request.
010C00030410002101080000
Register write request.

12:02:42.879 --> 0109000304F0000000
12:02:42.989 <-- 0109000304F0000000

12:02:42.993 --> 0109000304F1FF0000
12:02:43.101 <-- 0109000304F1FF0000

12:02:43.105 --> 0109000304A0010000
12:02:43.226 <-- 0109000304A0010000
14443A REQA.ý()
12:02:43.995 --> 010A0003041000010000
12:02:44.011 --> 010C00030410002101080000
12:02:44.124 <-- 010A0003041000010000
Register write request.
010C00030410002101080000
Register write request.

12:02:44.127 --> 0109000304F0000000
12:02:44.238 <-- 0109000304F0000000

12:02:44.242 --> 0109000304F1FF0000
12:02:44.351 <-- 0109000304F1FF0000

12:02:44.358 --> 0109000304A0010000
12:02:44.472 <-- 0109000304A0010000
14443A REQA.ý(0400)(4BF0DE5732)[4BF0DE5732]
12:02:44.477 --> 010A0003041850000000
12:02:44.599 <-- 010A0003041850000000
Request mode.
[]
12:02:44.604 --> 010D000304A24BF0DE57320000
12:02:44.719 <-- 010D000304A24BF0DE57320000
14443A Select.
(0400)[08]
12:03:00.961 --> 010E000304C0D3F7D3F7D3F70000
12:03:01.078 <-- 010E000304C0D3F7D3F7D3F70000
Crypto1 set key.
Initialization ok

12:03:01.083 --> 010F000304C160004BF0DE57320000
12:03:01.211 <-- 010F000304C160004BF0DE57320000
Crypto1 authentication step 1.
!! 00 bytes and 04 bits received, expected 4 bytes and 0 bits. Abort

  • Hey Sanath,

    This is either a timing error or you are using the wrong Key. It looks like the Key you are trying is 0xD3 0xF7 0xD3 0xF7 0xD3 0xF7, did you change the key in the card to this? The Default key is 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF.

    Try the default key and let me know if it's working for you. I'm also working on a newer Mifare Classic example that should be out in the next week or so. Keep an eye out on the forum and on our TI Designs page (in my signature.)

    Thanks,
    JD
  • Hello sir,

    Thank you for the reply.

    The Default key in the new card was 0xFF 0XFF 0XFF 0XFF 0XFF OXFF But when i wrote some data into the card it automatically changed to another key ie  0xD3 0xF7 0xD3 0xF7 0xD3 0xF7.After that when i tried with this key it was working  at 1,15,200 baud rate but when i changed the baud rate to 9600 it is stopping at that point.when i go back to 1,15,200 baud rate its still not working.

    I didn't get what Timing Error means.Can you please Explain?

    Thank you,

    Sanath Rai

  • Hello Sir,

    I am still stuck at the same point .i have changed the reader IC's.

    We have ordered new Mifare classic 1k cards .but still getting the same error.

    Crypto1 authentication step 1.

    !! 00 bytes and 00 bits received, expected 4 bytes and 0 bits. Abort

    The default keys in this new cards are  0xD3 0xF7 0xD3 0xF7 0xD3 0xF7, The UIDS are perfectly returned back but Authentication is not taking place.

    Earlier  once or twice even Authentication was done.but not consistently.

    Any methods to debug this Error?

    In your last post you mentioned of working on new Mifare classic code.if i get that firmware i will try with that also.

    Waiting for your reply.

    Thank you,

    Sanath Rai