7 years, 7 months ago.

nRF52 NFC

Hi,

is it possible to use the on-chip NFC peripheral with this board? The NRF5 SDK provides a driver for NFC, but this driver does not seem to be present in the mbed hal.

May it be possible to just include the NFC driver from the SDK?

Question relating to:

The nRF52 Development Kit is a single-board development kit for Bluetooth Smart, ANT and 2.4GHz proprietary applications using the nRF52 Series SoC. This kit supports both development for nRF52832 SoCs.

4 Answers

7 years, 5 months ago.

Any updates on this matter?

7 years, 6 months ago.

The NRF5 SDK is included when you build for mbed, so you can use the NFC driver from the SDK to get access. (same goes for other things like persistent storage APIs for Nordic boards).

Thanks for the answer. Unfortunately unlike persistent storage the NFC part is missing in the NRF5 SDK included in mbed.

The NRF5 SDK provides the NFC driver as a static library. Can a static library be included when building with mbed-cli?

posted by Daniel O. 04 Oct 2016

So i tried to use the SDK's fds module for testing. As this is delivered with sources it should not be a problem for mbed-cli. But it turns out, that the linker still complains about not finding the functions. I can see the built objects in the build directory, but gcc still gives me an 'undefined reference' error: undefined reference to `fds_init()'

The NRF5 SDK uses a "sdk_config.h" file for enabling driver features. I could not find a config file like that in the mbed-os tree. Do I have to turn those driver features on somewhere?

posted by Daniel O. 05 Oct 2016

I was able to fix a part of my problem. When using NRF5 SDK functions you have to make sure, that you include the header files with extern "C" {...}. Otherwise the linker will not find the functions. With this I was able to get the flash data storage working using the mbed-os 5.2 branch.

Unfortunately the NFC is still not working.

posted by Daniel O. 20 Oct 2016
7 years, 2 months ago.

any update about it?