0

Playground Bluefruit - NFC Support?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Playground Bluefruit - NFC Support?

by kinkadius on Mon Jun 07, 2021 9:43 pm

Looking around the documentation, it doesn't appear that there's support for using NFC on the NRF52840. The only reference I can find that mentions it is in bootloader changeling:
https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/2577833136578dd80550566cc34e466b007cbd6c/changelog.md#0211

Has anybody else tried playing with the NFC support for this device?

kinkadius
 
Posts: 4
Joined: Mon Jun 07, 2021 7:26 pm

Re: Playground Bluefruit - NFC Support?

by mikeysklar on Tue Jun 08, 2021 7:41 pm

Interesting. I didn't realize NFC was baked into the nRF52840 hardware until you mentioned it. I don't see any examples on the Arduino/CircuitPython side.

We do have a note about NFC usage in the nRF52840 Feather guide. This might apply to the Playground Bluefruit.

https://learn.adafruit.com/introducing- ... -3014277-2

D2/NFC2: The D2 pin is uses the same pad as one-half of the NFC antenna pins. By default, the nRF52840 Feather ships with these pins configured for GPIO mode, which is done by writing a value to the UICR flash config memory. If you wish to use NFC, you will need to erase the UICR memory which requires erasing the entire chip, and you will need a Segger J-Link to reflash the bootloader and firmware.


There is a github project using it's own nRF52 customized board that is worth checking out on this topic.

https://github.com/cmdwtf/Odiin

mikeysklar
 
Posts: 4996
Joined: Mon Aug 01, 2016 8:10 pm

Re: Playground Bluefruit - NFC Support?

by kinkadius on Wed Jun 09, 2021 11:28 am

mikeysklar wrote:Interesting. I didn't realize NFC was baked into the nRF52840 hardware until you mentioned it. I don't see any examples on the Arduino/CircuitPython side.

We do have a note about NFC usage in the nRF52840 Feather guide. This might apply to the Playground Bluefruit.

https://learn.adafruit.com/introducing- ... -3014277-2

D2/NFC2: The D2 pin is uses the same pad as one-half of the NFC antenna pins. By default, the nRF52840 Feather ships with these pins configured for GPIO mode, which is done by writing a value to the UICR flash config memory. If you wish to use NFC, you will need to erase the UICR memory which requires erasing the entire chip, and you will need a Segger J-Link to reflash the bootloader and firmware.


There is a github project using it's own nRF52 customized board that is worth checking out on this topic.

https://github.com/cmdwtf/Odiin


Oof, erasing UICR memory would be a bummer, what do you think it would take to use NFC with the boot loader that was given? Would I need to modify the bootloader?

kinkadius
 
Posts: 4
Joined: Mon Jun 07, 2021 7:26 pm

Re: Playground Bluefruit - NFC Support?

by mikeysklar on Wed Jun 09, 2021 2:59 pm

You will need to use a Segger J-Link to reflash out bootloader and set the UICR NFC configuration (register 0x20C). Our bootloader should be fine to reupload as this is only a register setting. There is a little more described here:

https://jimmywongiot.com/2019/08/19/man ... cr-region/

mikeysklar
 
Posts: 4996
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.