2021-11-19 05:59 AM
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:
Thanks for every helpfull comment,
Sebastian
Solved! Go to Solution.
2021-12-01 05:43 AM
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
2021-11-22 01:03 AM
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
I've attached the NUCLEO-L476RG ioc file (STM32CubeMX) for reference.
Rgds
BT
2021-11-30 04:28 AM
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.
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
Do you have any further information which helps to get the system running?
Regards,
Sebastian
2021-11-30 05:34 AM
Hi Sebastian,
the mentioned functions are defined in rfal_nfc.c. Should be under the last directory of the shown "Middlewares".
BR, Ulysses
2021-12-01 05:38 AM
Hi Ulysses,
thanks for your reply.
I already found the references in the rfal_nfc.c, I can use the ctrl-shortcut to go (from demo_polling.c to rfal_nfc.c) to the reference of the corresponding function. Hence, it seems to be a problem with the linker.
So my question: Which Library / Library-Path has to be add in the linker option?
This doesn't work.
BR, Sebastian
2021-12-01 05:43 AM
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