2019-05-10 06:13 PM
Is there any example source code that I can use for controlling CR95HF from user space application in Linux using UART?
Solved! Go to Solution.
2019-05-13 11:16 AM
Hi,
As far as I know, CR95HF UART Driver Example for Linux is not available. Anyway, X-CUBE-NFC3 V2.0.0 contains ST portable RFAL for CR95HF (STM32CubeExpansion_NFC3_V2.0.0\Drivers\BSP\Components\ST25R95 and STM32CubeExpansion_NFC3_V2.0.0\Middlewares\ST\rfal folders). You will need to adapt the platform.h file to define platformUartXXXX macro to point to Linux Uart read/write. Three callbacks are also used st25r95UartTxCpltCallback and st25r95UartRxCpltCallback when UART Rx or TX completes and st25r95UartErrorCallback in case of error.
The RFAL stack has already been ported on Linux for ST25R3911B and ST25R3916 readers. See STSW-ST25R009 and STSW-ST25R013 for porting examples (in particular for platformTimerXXX, platformGpioXXX and platformDelay services)
Rgds
BT
2019-05-13 11:16 AM
Hi,
As far as I know, CR95HF UART Driver Example for Linux is not available. Anyway, X-CUBE-NFC3 V2.0.0 contains ST portable RFAL for CR95HF (STM32CubeExpansion_NFC3_V2.0.0\Drivers\BSP\Components\ST25R95 and STM32CubeExpansion_NFC3_V2.0.0\Middlewares\ST\rfal folders). You will need to adapt the platform.h file to define platformUartXXXX macro to point to Linux Uart read/write. Three callbacks are also used st25r95UartTxCpltCallback and st25r95UartRxCpltCallback when UART Rx or TX completes and st25r95UartErrorCallback in case of error.
The RFAL stack has already been ported on Linux for ST25R3911B and ST25R3916 readers. See STSW-ST25R009 and STSW-ST25R013 for porting examples (in particular for platformTimerXXX, platformGpioXXX and platformDelay services)
Rgds
BT
2019-05-13 11:29 AM
Thanks! I will give it a try.
Regards,
Jimit