Skip to main content
Graduate
May 13, 2025
Solved

NFC10A1 on NUCLEO -F303

  • May 13, 2025
  • 2 replies
  • 733 views

Hello,

I would like to develop a system using the NFC chip ST25R200 and the microcontroller STM32F303. The main idea is to be able to read an NFC tag, specifically the ST25DV64KC.

As a first step, I plan to test this using the prototyping board NUCLEO-F303 and the NFC expansion board X-NUCLEO-NFC10A1. I'm using CubeIDE.

I'm sure that ST has prepared everything for a simple and smooth integration. Because of that, I'm confused about what I'm doing wrong.

After configuring the pins and integrating the middleware/software in STM32CubeMX, I get errors when I try to compile the code (I haven't changed anything in the generated code).

 

Here is picture with Pins defined:

image.png

here is Middleware/software package included and set:

image.png  image.png

SPI1, Interrupt, GPIO configure:

image.pngimage.pngimage.png 

 

 

After generating code I go to main.c where I want to compile generated code and get a lot of errors:

image.png

image.png

Can you please help me understand what I'm doing wrong?
In the past, I worked with the ST25R3912, so I have some experience.
If you need more information, feel free to ask.

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

    Hi,

    make sure to select an RFAL configuration. It seems not selected in your case:

    BrianTIDAL_0-1747139936791.png

    This should be something like:

    BrianTIDAL_1-1747139993909.png

    See attached ioc file as an example.

    Rgds

    BT

    2 replies

    Technical Moderator
    May 13, 2025

    Hi,

    make sure to select an RFAL configuration. It seems not selected in your case:

    BrianTIDAL_0-1747139936791.png

    This should be something like:

    BrianTIDAL_1-1747139993909.png

    See attached ioc file as an example.

    Rgds

    BT

    DIvan.1Author
    Graduate
    May 13, 2025

    That solved my problem.

    Thank you very much.

    If I want to use NFC-V and allowed energy harvesting for tag (ST25DV64KC)...

    1. what is the minimum of the functions I need to use?

    2. what of these options I need to use:

    image.pngimage.png

     

    I'm a bit sceptical with time spending using all that functions.

     

    Thank you and best regards,

     

    Technical Moderator
    May 13, 2025

    Hi,

    in a perfect world, you should choose Custom_config for the RFAL and then select RFAL_FEATURE_NFCV and RFAL_FEATURE_ST25xV and regenerate. In that case the project also defines RFAL_ANALOG_CONFIG_CUSTOM whereas no custom analog config are provided, so #define RFAL_ANALOG_CONFIG_CUSTOM needs to be manually commented in the nfc_conf.h.

    Unselected technologies are then not used in the discovery loop and the linker removes the unused part of the code. 

    Rgds

    BT

    Technical Moderator
    May 14, 2025

    Hi,

    Sorry for the confusion about RFAL_ANALOG_CONFIG_CUSTOM, I was using a pre-release version of the FW package.

    Regarding RAM/FLASH usage

    Default:

    BrianTIDAL_0-1747227903785.png

    Custom:

    BrianTIDAL_1-1747227957648.png

    Make sure to use the following compiler settings:

    BrianTIDAL_2-1747228173313.png

    and the following linker setting:

    BrianTIDAL_3-1747228202219.png

    Check the map file for the custom build vs the default build: functions such as rfalNfcaPollerInitialize should be absent in the custom build map file.

    Also adjust the compiler optimization level according to your needs.

    Rgds

    BT