Where can I find an updated platform.h to go with the latest version of RFAL library (en.STSW-ST25RFAL001, v2.2.0/22-May-2020)
- September 19, 2020
- 2 replies
- 2313 views
Hi,
I recently downloaded the latest version of the en.STSW-ST25RFAL001: v2.2.0/22-May-2020. In my application I had been using an older version of the en.STSW-ST25RFAL001.
However in the Release notes for en.STSW-ST25RFAL001: v2.2.0/22-May-2020, there is a section that says:
- Aligned APIs on platform.h (breaks compatibility with previous versions, see example in rfal.chm)
I checked the example in rfal.chm and could not find any references to a changed platform.h anywhere.
I am getting a lot of compile errors because I am missing the correct platform.h. I have tried the latest STSW-ST25R002 and X-NUCLEO-NFC5 (as mentioned in the answers in this post) and none have the updated platform.h. I say this because neither of the two packages have a platform.h that has the "platformTimerDestroy(tmr);" or "platformErrorHandle();" functions, which are present in the latest RFAL.
Also when #define RFAL_FEATURE_NFC_DEP is set to true (in the latest RFAL library), it gives rise to a whole host of new compile errors, the most prominent being:
error: 'RFAL_FEATURE_NFC_DEP_BLOCK_MAX_LEN' undeclared here (not in a function); did you mean 'RFAL_FEATURE_ISO_DEP_IBLOCK_MAX_LEN'?
[build] uint8_t inf[RFAL_FEATURE_NFC_DEP_BLOCK_MAX_LEN]; /*!< INF | Data area of the buffer */
[build] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have attached a text file with all the compile errors I get and also a copy of my platform.h. (Note I was able to fix a few function names in the platform.h such as platformIrqST25R3911PinInitialize() was now changed to platformIrqST25RPinInitialize();, by doing a diff between the older and newer st25r3911_interrupt.c, so you might not see these in the list of errors. )
Hardware: MCU: STM32L496 connected to ST25R3911b over SPI. Need the latest RFAL library so that I can use rfalNfcvPollerReadMultipleBlocks() and rfalNfcvPollerTransceiveReq() to implement the Fast Read Multiple Blocks Unlimited command (custom command) for an ISO15693 compliant Fujitsu Tag (MB89R118C)
Could you please point me to a platform.h that is compatible with en.STSW-ST25RFAL001: v2.2.0/22-May-2020?