Skip to main content
SRauh.1
Associate II
November 19, 2021
Solved

Bring-up NFC06A1 on NUCLEO-F446RE

  • November 19, 2021
  • 2 replies
  • 2119 views

Hello Community,

I am new in the topic of nfc and programming of nucleo boards.

So, the questions can seem to be very stubid ;)

For a project I try to bring up a X-Nucleo-NFC06A1 on top of a Nucleo -F446RE.

On web (ST,...) I found code examples for different nucleo boards.

If I import the supported examplary projects into the Cube IDE, everything works quite well...but with the wrong Nucleo board.

I can't find any guidline to bring up the NFC extension board with the F446RE.

And also the NFC06A1 cannot be imported via Devcie config Tool (software packets).

So my (stupid) questions:

  • Is there a guidline / video / ... available which describes the steps to port the existing examples to the f446re
  • What files of the Middleware/Driver should be included to get the NFC06A1 running in from a default F446RE project
  • How should the f446re be configured (SPI,...)

Thanks for every helpfull comment,

Sebastian

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

Hi Sebastian,

there is no specific linker option or lib/libpathc/etc.. Make sure rfal_nfc.c is compiled and that rfal_nfc.o is in the list of objects being linked by the linker.

Rgds

BT

2 replies

Brian TIDAL
Technical Moderator
November 22, 2021

Hi Sebastian and welcome to ST community.

First of all, I would recommend to use the ST25 Embedded NFC library that is the most up to date package. This package is build on top of NUCLEO-L476RG but it can be ported on other Nucleo board such as the NUCLEO-F446RE. This has to be done "half" manually.

I would suggest you use STM32CubeMX to configure the SPI and the various GPIOs on your NUCLEO-F446RE:

Then you just need to copy the /* USER */ parts of the main.c (and add st25r3916Isr() in EXTI0_IRQHandler) and update the platform.h with the pin mapping

Last step

  • add the various RFAL files in your project
  • update the main.c to add the calls to demoIni and demoCycle
  • update the include path and the defines (add USE_LOGGER and ST25R3916) in the compiler options

I've attached the NUCLEO-L476RG ioc file (STM32CubeMX) for reference.

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.
SRauh.1
SRauh.1Author
Associate II
November 30, 2021

Hello Brian,

thanks for your answer.

I followed your instructions to port one of the basic examples to the F446RE.

It works up to the point, that some "undefined reference to" errors occur.

0693W00000GZTlGQAX.png 

I already checked the forum to solve the problem, but without success.

It seems to be a linker problem...but to which library path i have to link?

The project structure is

0693W00000GZTw8QAH.png 

Do you have any further information which helps to get the system running?

Regards,

Sebastian

Ulysses HERNIOSUS
Technical Moderator
November 30, 2021

Hi Sebastian,

the mentioned functions are defined in rfal_nfc.c. Should be under the last directory of the shown "Middlewares".

BR, Ulysses

Brian TIDAL
Brian TIDALBest answer
Technical Moderator
December 1, 2021

Hi Sebastian,

there is no specific linker option or lib/libpathc/etc.. Make sure rfal_nfc.c is compiled and that rfal_nfc.o is in the list of objects being linked by the linker.

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.