Skip to main content
Visitor II
September 24, 2018
Solved

Fast transfer mode mailbox - how many write cycles can it handle?

  • September 24, 2018
  • 25 replies
  • 7296 views

I have an application which must send > 100KB/day to an RFID/NFC reader (I'm using the STM25R Disco) - for days and years on end.

Looking at the EEPROM spec, it's good for 600k write cycles at 85 °C

(That means even at 64Kbit EEPROM, wear leveling would be critical for long life.)

The Fast Transfer Mode buffer / mailbox is intriguing (256 Bytes) - it seems perfect for my use case - (mainly polling data) - however I cannot find any information about the type of memory used for this or number of write cycles it supports in the datasheet.

So, what type memory is used for this FTM mailbox? How many write cycles can it handle?

Thank you very much

    This topic has been closed for replies.
    Best answer by EGiff

    Answering my own question - I can write and read the FTM mailbox from the ST25 Tag Editor in batteryless mode using the following script (in the script tool):

    REM,PRESENT PASSWORD

    ST25R3911B_SENDRECEIVE, 02B302000000000000000000

    REM,WRITE CONFIG GPO = B0

    ST25R3911B_SENDRECEIVE, 02A10200B0

    REM,WRITE CONFIG MB_EN = 01

    ST25R3911B_SENDRECEIVE, 02A1020D01

    REM,WRITE CONFIG MB_WDG = 00

    ST25R3911B_SENDRECEIVE, 02A1020E00

    REM,WRITE DYN REGISTER @00

    ST25R3911B_SENDRECEIVE, 02AE020D00

    REM,WRITE DYN REGISTER @01

    ST25R3911B_SENDRECEIVE, 02AE020D01

    ST25R3911B_SENDRECEIVE, 02AA02FF030000010000200000220001F3E2400001000003FF03FF00FF440E000000EB73742E636F6D3A736D6172746167010100020500013FEEEEEEEE41403228544B3804000100000500220032082200050022000A00220041412F2E0A0022000500220019002200143661040200700005002200C42B38610A002200842B48610F00220004CB872A1400220004CBB72A19002200C4EA97631E002200C4EA9763230022008429A85528002200842918552D00220084297855708F0000842918553700220084292855400022008429F85445002200842918554A002200842928554F0022008429C854540022008429185559002200842918555E0022008429B854630022

    This causes the STM32L0 to go into error (NFC_READING_ERROR) because FTM is not implemented on the SMARTAG1 firmware - (the main loop attempts to write EEPROM after mode has been set to FTM by the RF side)

    ST25DV is ok and the FTM mailbox can be written and read back in batteryless mode.

    25 replies

    EGiffAuthor
    Visitor II
    December 4, 2019

    "Try tuning for amplitude instead of phase using manual tuning." Do you mean changing ST25R3911 firmware(in rfal_analogConfigTbl.h) or others?

    I mean the antenna tuning circuit can tune for either Phase over Amplitude, Amplitude over Phase or AAT (hardware) - setting the appropriate trim level accordingly.

    To manually tune for amplitude or phase, you can sweep the trim values - and choose the highest one. (that's done on the PC using the software, or on the ST25R using AAT hardware method).

    Once you have found the ideal trim value, you can set it like this:

    // value must be minimum 0, maximum 15

    void setTrimValue(uint8_t trim)

    {

    //logUsart("setTrimValue: %u", trim);

    // See page 77 of ST25R3911B data sheet "Antenna calibration control register"

    // Bit 7 (the first on the left) - indicates if the tuning was automatic or manual

    // This will be 1 since we are setting it manually

    // The next 4 bits give the trim value, from 0 to 15

    // ex trim 8 = 1 1000 000 or 0xC0

    uint8_t regVal = trim << 3; // align with register

    regVal |= 0x80; // add manual adjust bit

    st25r3911WriteRegister(0x21, regVal);

    }

    EGiffAuthor
    Visitor II
    December 4, 2019

    Specifically, if you want max V_EH on the tag - would be to measure V_EH with a multi-meter on the tag for all the trim values.

    EGiffAuthor
    Visitor II
    December 4, 2019

    However, if your RSSI (measurable on the ST25R) is too low, V_EH (if turned on) - will be a fairly static value. Only above an RSSI of about 1.5V will E_VH start to increase

    Visitor II
    December 10, 2019

    Hello evan:

    Thanks very much.

    I tried your methods, but the distance doesn't increase.

    I decide to change the reader from ST25R3911B to ST25R3916.

    And ST25R3916 board will be available in the next week.

    I get another issue, when the reader first read data from the tag in the mailbox mode, it takes such a long time(about 40 seconds) to get the right data.

    Johnson

    Visitor II
    April 23, 2021

    ST25r3911b dll WITH sendreceive for c/c++

    Good morning,

    we are using your evm ST25R3911 buth we found only a dll demod that include only first command as RQA/ANTICOLL/SEL/PPS but not a SEND and receive as showed in your GUI ST tag editor, because I need to write A NDEF file but using a program in c/c++. Could you support us?

    Technical Moderator
    April 23, 2021

    Hi asant.1,

    I think this post is completely unrelated to the original post. Please open a new ticket and we will provide guidance.

    Regards, Ulysses