2023-09-28 04:53 AM
I am using the ST25R3918 and the 'pollingTagDetect' example from the RFAL library. This chip does not have the ST25R3916_CMD_TEST_ACCESS register.
How can I modify this library?
Solved! Go to Solution.
2023-09-28 05:57 AM
Hi,
the ST25R3916 RFAL library is designed for ST25R3916 and its derivative (such as ST25R3918). It is not needed to modify the ST25R3916 library for ST25R3918.
Rgds
BT
2023-09-28 05:57 AM
Hi,
the ST25R3916 RFAL library is designed for ST25R3916 and its derivative (such as ST25R3918). It is not needed to modify the ST25R3916 library for ST25R3918.
Rgds
BT
2023-09-29 07:37 AM - edited 2023-09-29 07:39 AM
2023-09-29 08:35 AM
Hi,
2023-10-03 01:21 AM
Hi again, I am grateful for your help thank you so much.
In the code below, after the ST25R3916_IRQ_MASK_WT interrupt, platformErrorHandle is triggered. However, when I don't activate ST25R_SELFTEST, ST25R3916_IRQ_MASK_GPE does not trigger in st25r3916.c file. But, when I activate the second ST25R3916_IRQ_MASK_GPE, platformErrorHandle is triggered. What could be the reason for this?
2023-10-03 02:26 AM
Hi,
errors triggered inside ST25R_SELFTEST code are the helpers to debug porting issues. The ST25R_SELFTEST checks first that the SPI communication is operational (write a pattern to a register and read it back) and then causes an interrupt from the device and checks the proper handling of the ST25R interrupt. It seems the ST25R interrupt is not properly handled on your platform.
Make sure:
Rgds
BT
2023-10-03 07:28 AM
I didn't add st25r3916Isr() in EXTI0_IRQHandler(void). I added then ST25R_SELFTEST doesn't error thank you but ST25R_SELFTEST_TIMER has a error.
2023-10-03 09:30 AM
Hi,
ST25R_SELFTEST_TIMER checks that platformTimer/platformGetSysTick macros are properly implemented. It starts a 20 ms General Purpose Timer on the ST25R device and checks that the timer expires in 20 ms +/- 2 ms.
It is likely that the SYSTICK on your board is not accurate or does not have the proper 1ms value. Do you use an HSE crystal oscillator or an HSI internal RC oscillator? Just toggle a GPIO inside the SysTick_Handler and probe it with a scope to check the value of the SYSTICK.
Rgds
BT
2023-10-04 11:43 PM
Hi,
I use an HSI internal RC oscillator. I check SysTick_Handler and it seems okay.
Rgds
ZD
2023-10-05 04:55 AM - edited 2023-10-05 04:56 AM
Hi,
can you connect a logic analyzer on the SPI (CLK/MISO/MOSI/SS) + IRQ_ST25R + SYSTICK GPIO (toggling every 1 ms) and send me the trace? what is the duration between the Start General purpose timer direct command and the IRQ_ST25R interrupt?
Rgds
BT