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.

TRF7970A: TRF7970A

Part Number: TRF7970A
Other Parts Discussed in Thread: MSP430F2370

Hi,

I am using TRF7970A to read MIFARE classic(1K) with 16 sector and 4 block in each. Want to read 16 bytes data of each block.

Is it compulsory to use direct mode to transmitting data from the TRF7970A to a MIFARE? (Find the attached document for source of information)

If no than do you have sample code? (Without using direct mode)

Connection with TRF7970A as per below image. We can't use direct mode as we don't have control of I/O_0I/O_1 and I/O_2.

//************************************************************************************************************************************************************************************************************//

To read MIFARE card blocks, used sloa214.zip sample code with direct mode support. (SDM Mifare lib on TRF7970AEVM)

Its working with MIFARE card I have and can read each data block with different keyA settled in each sector. 

//************************************************************************************************************************************************************************************************************//

//************************************************************************************************************************************************************************************************************//

I have integrated below code to read ISO14443A and ISO15693 card.

F5529LP_TRF7970A_ALL_NFC_MODES_BaseCode_01052018.rar

F5529LP_TRF7970A_ALL_NFC_MODES_BaseCode_01052018.rar

//************************************************************************************************************************************************************************************************************//

sloa159a_MifareFirmwareHint.pdf

  • Hello Nirav,

    nirav Patel3 said:
    Is it compulsory to use direct mode to transmitting data from the TRF7970A to a MIFARE? (Find the attached document for source of information)

    For MIFARE Classic, the only methods to be able to read are to either use Direct Mode 0, or Special Direct Mode. So yes, one of those Direct Modes are required.

    We strongly recommend using Special Direct Mode as it is a much easier method to implement than the Direct Mode code you are questioning.

    As Special Direct Mode requires connection to the following lines; I/O_5, I/O_3, and I/O_2, without having these connections it will not be possible to read a MIFARE Classic tag using it.

    SLOA214 is our best resource for reading MIFARE Classic tags, so that is what you should be following.

  • Thanks!!!...Ralph Jacobi

  • Hi Ralph Jacobi,

    //*******************************************************************************************************************************************************//

    To read MIFARE card blocks, used sloa214.zip sample code with direct mode support. (SDM Mifare lib on TRF7970AEVM)

    //*******************************************************************************************************************************************************//

    We have integrated SDM Mifare lib in our actual code.

    We are using Nordic nRF52832 controller in our system and Keil(IDE V5).

    Can we use MifareCryptoLibrary.lib in our code? given in Mifare Classic read example or it built for MSP430F2370 only.

    Getting error when compile with Keil "Could not recognize the format of member crypto1.obj from MifareCryptoLibrary.lib."

    Thanks,

    Nirav Patel

  • Hello Nirav,

    The .lib has to be compiled based on the target MCU core, so it is not possible for it to be used with third party MCU's. For other TI MCU's, we recompile the library and provide it for specific target MCUs, but it will not be possible for us to do that for third party MCU's.
  • Thanks Jacobi,

    Do you have another example code so I can integrate it?

    -Nirav Patel
  • Hello Nirav,

    The only other solution available is the Direct Mode 0 method: www.ti.com/.../TRF796X_TRF7970X_MIFARE_12_2013

    However, we provide that as is, and do not offer applications support for it.
  • Hello Nirav,

    I need to follow-up on my prior comment regarding the .lib, you can actually use the source files from the Direct Mode 0 example with the SDM example to be able to leverage SDM on non-TI MCUs. It's just that library we built for SDM mode allows access without making the request through the Secure Software site. Sorry for my prior comments before that incorrectly stated it wasn't possible.