ST25R3916 port ST25R_SELFTEST_TIMER error
Hi,
I am trying to port the rfal library for an ST25R3916. I have defined all mandatory pins, ports and interfaces which RFAL requires in the help documentation.
I have read that ST25R_SELFTEST and ST25R_SELFTEST_TIMER are a good way to find the issues with the integration of RFAL library to my project.
When I enable the above flags, I can see that the ST25R_SELFTEST is passed correctly without any error, but for ST25R_SELFTEST_TIMER it fails in st25r3916WaitForInterruptsTimed function:
/******************************************************************************
* Check SW timer operation :
* - use the General Purpose timer to measure an amount of time
* - test whether an interrupt is seen when less time was given
* - test whether an interrupt is seen when sufficient time was given
*/
st25r3916EnableInterrupts( ST25R3916_IRQ_MASK_GPE );
st25r3916SetStartGPTimer( (uint16_t)ST25R3916_TEST_TMR_TOUT_8FC, ST25R3916_REG_TIMER_EMV_CONTROL_gptc_no_trigger);
uint32_t err = st25r3916WaitForInterruptsTimed( ST25R3916_IRQ_MASK_GPE, (ST25R3916_TEST_TMR_TOUT - ST25R3916_TEST_TMR_TOUT_DELTA));
if( err != 0U )
{
platformErrorHandleErr(err);
return RFAL_ERR_SYSTEM;
}
The error I can see is 0x00080000U (I think is ST25R3916_IRQ_MASK_WT, correct me if not). I can also tell you the error rfalInitialize() retrieves: 0x8U (RFAL_ERR_SYSTEM).
Could you kindly help me to solve this error? I can't figure it out for myself.
Thank you very much
Enric Puigvert
