2021-03-01 11:32 PM
STM32L476VG is the MCU we are interfacing with ST25R3911B using SPI.
what we have understood from some search is that we need RFAL (abstraction layer) to interface with RF HAL.
Then once we integrate RFAL and RF HAL in our system workbench(ac6) project we need to build the integration then use SPI calls to read the register from RFID reader ST25R3911B
we wanted to use ISO-14443A standard to be configured and read the values.
where do we get the basic RFAL work space or code flow so that we shall use in our current project?
Kindly guide us and let us know are we in right path?
Solved! Go to Solution.
2021-03-10 02:32 AM
Hi,
hspi1.Init.NSS = SPI_NSS_HARD_OUTPUT; is incorrect. It should be hspi1.Init.NSS = SPI_NSS_SOFT; Can you verify this parameter in your STM32CubeMX configuration?
Rgds
BT
2021-03-10 02:35 AM
2021-03-10 02:39 AM
Hi,
this looks like an HW/board issue. Make sure to verify the HW pin assignment and check that the ST25R3911B is properly powered.
Rgds
BT
2021-03-10 02:44 AM
Hi BT,
Appreciate your efforts in replying to my queries patiently ..thanks for your support.
will let you know once I do my H/W testing...keep you posted.
regards
Ravi
2021-03-10 02:44 AM
Hi BT,
Just let me know if there any other configuaration issue..so that I can do and let you know.
regards
Ravi
2021-03-10 02:57 AM
2021-03-10 03:04 AM
Hi,
well, I do not see PA4 (SPI1_CS) GPIO being configured... if it is not configured, then platformSpiSelect will have no effect, the SS will stay flat and the ST25R3911B will never reply... It should be configured in STM32CubeMX as Output Push-Pull, No pull up and no pull down, level Low, speed Low.
Also PA3 (IRQ_3911) should be configured in interrupt rising mode. I've attached a reference IOC so that you can check you configuration.
Rgds
BT
2021-03-10 03:19 AM
2021-03-10 03:46 AM
Hi,
as explained in previous posts hspi1.Init.NSS = SPI_NSS_HARD_OUTPUT; is ***incorrect***... it should be SPI_NSS_SOFT
I still haven't seen any initialisation of PA4.
Have you re generated from STM32CubeMX?
Rgds
BT
2021-03-10 04:55 AM
Hi BT,
if this is configured as hspi1.Init.NSS = SPI_NSS_HARD_OUTPUT; ***then PA4 is seen ***in STMcubeMx under GPIO settings and in main.c it reflects as
hspi1.Init.NSS = SPI_NSS_HARD_OUTPUT;
if this is configured as hspi1.Init.NSS = SPI_NSS_SOFT then ;****PA4 is not seen ***in STMcubeMx under GPIO settings .
I think this has to be hspi1.Init.NSS = SPI_NSS_HARD_OUTPUT as this is chip select for SPI1...correct me if I am wrong.
regards
Ravi