Skip to main content
Associate III
June 12, 2025
Solved

ST25R100 on X-Nucleo-Nfc09A1 and Nucleo-L053R8: RFAL_ERR_HW_MISMATCH

  • June 12, 2025
  • 1 reply
  • 301 views

I have X-Nucleo-Nfc09A1 and Nucleo-L053R8. I am trying to test the kit with X-CUBE-NFC9 software. But it gets stuck with this error:

if( !st25r200CheckChipID( NULL ) )
{
 platformErrorHandle();
 return RFAL_ERR_HW_MISMATCH;
}


1.PNG2.PNG3.PNG4.PNG5.PNG6.PNG7.PNG


Post edited to apply source code formatting - please see How to insert source code for future reference.

This topic has been closed for replies.
Best answer by Brian TIDAL

Hi,

as far as I know, the HSE is either not used or connected to the 8MHz MCO output from the STLink. Your clock configuration uses a 2 MHz HSE. Have you done any modification on the NUCLEO-L053R8 board?

Your issue with st25r200CheckChipID is probably due to SPI communication issue.

Can you connect a logic analyzer on PA5/PA6/PA7/PB6 (SPI on CN5.6/CN5.5/CN5.4/CN5.3) + PA0 (IRQ on CN6.1) + PA9 (RESET on CN5.1) and provide the trace?

Rgds

BT

1 reply

Brian TIDAL
Brian TIDALBest answer
Technical Moderator
June 12, 2025

Hi,

as far as I know, the HSE is either not used or connected to the 8MHz MCO output from the STLink. Your clock configuration uses a 2 MHz HSE. Have you done any modification on the NUCLEO-L053R8 board?

Your issue with st25r200CheckChipID is probably due to SPI communication issue.

Can you connect a logic analyzer on PA5/PA6/PA7/PB6 (SPI on CN5.6/CN5.5/CN5.4/CN5.3) + PA0 (IRQ on CN6.1) + PA9 (RESET on CN5.1) and provide the trace?

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.