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 04:58 AM
Hi BT,
let me know where PA4 initialization is to be seen...for me it is in cubeMx ..LET me know
2021-03-10 05:06 AM
Hi Ravi,
in RFAL, the SPI SS is managed by software. Therefore, the configuration has to be hspi1.Init.NSS = SPI_NSS_SOFT and PA4 has to be configured in STM32CubeMX as GPIO_Output in the Pinout view and Output Push-Pull, No pull up and no pull down, level Low, speed Low in SystemCore->GPIO.
Basically, you just need to replicate the configuration that I've sent to you in X-NUCLEO-NFC05A1.ioc.
Rgds
BT
2021-03-10 05:25 AM
2021-03-10 05:34 AM
Hi,
the SW configuration seems ok. By the way, I believe platformLog should also work.
It's time now to check the HW.
Rgds
BT
2021-03-10 05:37 AM
2021-03-10 05:40 AM
Hi BT,
for platform log
#define platformLog(...) logUsart(__VA_ARGS__)
I need to use USE_LOGGER ..I have added the define ...I need to use LOGGER_ON I guess.
--Ravi
2021-03-10 05:40 AM
Hi BT,
we are checking from H/W side..as we have done evrything from S/W I guess
2021-03-10 05:47 AM
Hi,
yes, as explained in one of the first answers:
Rgds
BT
2021-03-10 05:53 AM
Hi BT,
once I initialized LOGGER_ON..I am seeing platformLog("Initialization failed..\r\n"); message in UART..that means RFAL initlaize has not happened I guess.
let me know if I need to do anything more
regards
Ravi
2021-03-10 06:21 AM
Hi BT,
I think the I found the issue let me know where to change the configuarations
seems like the .C and linking issue in ac6..I have added the folder from pathand symbols as done yesterday...
where do we now need to change to that RFAL is initialized and get the message
I think we need to resolve this before going to democycle or even SPIWRite ,SPIread I guess
Kindly let me know
regards
Ravi