-
-
Notifications
You must be signed in to change notification settings - Fork 35
How do I use the mbed::nfc feature #67
Comments
Hi @Gerriko , |
Hi @facchinm Thanks for your feedback. Yes, I eventually discovered the mbed documentation, which describes the MBED NFC API and where the PN512 module fits. https://github.com/ARMmbed/mbed-os/blob/master/docs/design-documents/nfc/nfc_design.md There may be ways to incorporate parts of this mbed library, such as the ndef module, but this looks like a good deal of work, especially if you are not familiar with this mbed library. Anyhow, I believe a Chiara Ruggeri (from Arduino) has already developed some great nRF52840 NFC examples for the Arduino Primo boards. Is there any simple way of making these examples work with the nano BLE 33? The issue for me is that those examples were created as core examples for the primo so are all residing in the Arduino15 folder. |
This porting across the Nordic SDK NFC examples is proving quite messy. I have discovered that the Arduino Primo examples must be using an old Nordic SDK as many of those functions have changed. So not much use for the new nano BLE 33 board. The question I have now is how do I deal with the Nordic SDK "nrfx" module (i.e. the nrfx folder with all subfolders and associated nrfx files). Is this not something that is part of the nano BLE core or do I assume this to be separate and thus can block copy as part of a library. Just to clarify, my above comment (re nrfx) applies to nrfx_nfct.h and nrfx_nfct.c files and nrf_nfct.h file found in "hal" Nordic SDK directory only as could not find these in the core nano library. The concern I have including these in a customised library folder is version control. Then according to nRF5 SDK v15.3.0 documentation, in Libraries>>NFC library and modules>>NFC Type 2 Tag: When using NFCT driver, you must enable the clock in the sdk_config configuration file. To do that, set the following configuration parameter: #define NRF_CLOCK_ENABLED 1 I had a look in ...\AppData\Local\Arduino15\packages\arduino\hardware\mbed\1.1.4\cores\arduino\mbed\targets\TARGET_NORDIC\TARGET_NRF5x\TARGET_NRF52\TARGET_MCU_NRF52840\config\sdk_config.h and no NRF_CLOCK_ENABLED exists. I am also getting warnings when compiling my draft code, but not sure if related: |
Hi there, I have been looking at the following two examples: https://os.mbed.com/docs/mbed-os/v6.5/apis/nfc-apis.html In the first example I am able to create the message, however I'm struggling with writing the message to memory. The second example has this code
The issue I am having is how do I get the driver for the Arduino Nano 33 BLE Sense? This line
I can't seem to find any good examples of how this would work. Any help would be greatly appreciated. In terms of what I am trying to achieve is to set the Arduino up using an NFC antenna as a tag so I can read out a message when I place an iPhone near it for example. Thanks |
Sorry these aren't really issues, but questions related to the NFC-A Tag feature. I put this question on the Arduino.cc forum but in case not everyone looks at that forum I wanted to ask the same question here.
I wish to use the nfc feature with my nano ble 33 board and I see that within ArduinoCore-nRF528x-mbedos... /arduino/mbed/features folder there is a folder for nfc.
So, is this code ready for use (it looks a lot less code than say the Arduino Primo nfc library, which is also nRF52 based)?
If so, how to I use this code?
Then on the reverse side of the board are two solder pads for P0.09 and P0.10 which you can join to D7 and D8.
Is there any way you can use P0.09 and P0.10 directly in our firmware? If so, what is the coding format?
The text was updated successfully, but these errors were encountered: