Porting ST25R3916B software to nRF5340
Hi,
I want to use ST25R3916B with nRF5340 from nordic semiconductor. The software for ST25R3916B is written mainly for STM32 MCUs. How can I port the software to nRF5340? How can I start at all?
Thanks.
Hi,
I want to use ST25R3916B with nRF5340 from nordic semiconductor. The software for ST25R3916B is written mainly for STM32 MCUs. How can I port the software to nRF5340? How can I start at all?
Thanks.
Hi,
the RFAL uses 3 function-like macros for the SPI defined in rfal_platform.h:
and one macro:
The RFAL does not care about the SPI pins and only uses those 3 function-like macros for the SPI communication. The SPI has to be configured inside the porting glue.
If the Select pin is managed in frame mode by your SPI hardware, define ST25R_COM_SINGLETXRX and define platformSpiSelect/platformSpiDeselect as empty.
If theSelect pin is managed by software, redirect platformSpiSelect/platformSpiDeselect to the GPIO management function to set the Select pin low or high.
The platformSpiTxRx has to be redirected to the nRF SPI transceive function.
Rgds
BT
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.