Skip to main content
Associate
May 13, 2026
Solved

X-Cube-NFC10: CubeMX generates incorrect nfc_conf.h unless Board Extension NFC selected

  • May 13, 2026
  • 2 replies
  • 102 views

Hello There,

I am currently trying to use the ST25R200 with the X-CUBE-NFC10 Software package.


First thing am not sure about: In the "Software Packs Component Selector" I have to configure the "Board Extension NFC/NFC10A1" even when i don't plan to use this board. Otherwise i get a warning that "NFC10Boardlface" requires "NFC/NFC10A1". If I don't select the board part, I get a simmilar warning from the RFAL component.

CecilW_0-1778680636437.png

If i either don't add NFC/NFC10A1 in the component selector or don't select "Board Part NFC10Boardlface" in the Mode selection for the X-CUBE-NFC10 package, CubeMX seems to have problems generating the header "nfc_conf.h", which i have attached to this post.
This is how the configuration looks, which generated nfc_conf.h:

CecilW_1-1778681833556.png

Am I using this library not correctly? Or rather which components of this library am i supposed to configure if i want to use the library with a custom board based on the ST25R200?

Best Regards, Cecil

Best answer by Grégoire Poulain

Hi Cecil,

Indeed the code generation process through STM32CubeMx is sometimes not straightforward.
The SW modules here rely on BSPs (Board Support Packages), hence to use the NFC10Boardlface it expects the board's BSP(X-NUCLEO-NFC10A1) , which likely does not fit in your final product/system.

Perhaps other user/colleague may be able to better advise you on best procedure through STM32CubeMx.

In case you want to add NFC / RFAL Library on your project there are other possibilities.

  • RFAL Library
    The RFAL is available as a standalone package that can be used on any existing FW project
  • Example Projects
    Examples projects are available
    • X-CUBE-NFC10
      The standard demo for X-NUCLEO-NFC10A1 board, which contains the Software Pack Component that you are trying to add/config via CubeMx.

    • STSW-ST25RLIB004
      Contains several example projects that run on ST25R200 / X-NUCLEO-NFC10A1 board.

Hope it helps

Kind Regards
GP

2 replies

Grégoire Poulain
ST Employee
May 15, 2026

Hi Cecil,

Indeed the code generation process through STM32CubeMx is sometimes not straightforward.
The SW modules here rely on BSPs (Board Support Packages), hence to use the NFC10Boardlface it expects the board's BSP(X-NUCLEO-NFC10A1) , which likely does not fit in your final product/system.

Perhaps other user/colleague may be able to better advise you on best procedure through STM32CubeMx.

In case you want to add NFC / RFAL Library on your project there are other possibilities.

  • RFAL Library
    The RFAL is available as a standalone package that can be used on any existing FW project
  • Example Projects
    Examples projects are available
    • X-CUBE-NFC10
      The standard demo for X-NUCLEO-NFC10A1 board, which contains the Software Pack Component that you are trying to add/config via CubeMx.

    • STSW-ST25RLIB004
      Contains several example projects that run on ST25R200 / X-NUCLEO-NFC10A1 board.

Hope it helps

Kind Regards
GP

CecilWAuthor
Associate
May 21, 2026

Hi Grégoire,

Thank you for the fast responce. This clarifies a lot of missunderstandings on my side.
It seems like STSW-ST25RFAL004 is just what i was looking for.

In my opinion the description at the top of the website for the X-CUBE-NFC10 package is a bit missleading. "The X-CUBE-NFC10 software expansion for STM32Cube provides a complete middleware for STM32 to build applications using NFC/HF RFID reader IC (ST25R200 device)." sound like a independant middleware package, and not like its only for the X-NUCLEO-NFC10A1 board.
Also the configuration options in CubeMX give the impression that this package is also usable without the X-NUCLEO-NFC10A1 board. Because why would there be options, if it only works if you enable every option.

Best Regards
Cecil