NFC on nRF52840 Sense. seeed wiki instructions not working

I am using mbed enabled board/Seeed XIAO BLE Sense - nRF52840. Latest IDE v 2.3.2 on Apple mac. Latest board software (downloaded today)

and running the example sketch ‘SendText.’
I have followed the instructions exactly from

I get below errors when trying to upload the compiled sketch. Can anyone suggest a solution? Thanks for looking at this! (NB I can upload other sketches to every other type of Xiao board) but for this project I need NFC. Best wishes Andrew

WARNING: library NFC claims to run on nrf52 architecture(s) and may be incompatible with your current board which runs on mbed architecture(s).

Sketch uses 87520 bytes (10%) of program storage space. Maximum is 811008 bytes.
Global variables use 44384 bytes (18%) of dynamic memory, leaving 193184 bytes for local variables. Maximum is 237568 bytes.
*Upgrading target on /dev/cu.usbmodem101 with DFU package /private/var/folders/j9/84cl671x1m55bcth7pfy428h0000gn/T/arduino/sketches/1C03411D16CDD6983C7CACC2A87AB50D/Legov1.ino.zip. Flow control is disabled, Single bank, Touch disabled *
*Failed to upgrade target. *
Error is: Serial port could not be opened on /dev/cu.usbmodem101. Reason: [Errno 16] could not open port /dev/cu.usbmodem101: [Errno 16] Resource busy: ‘/dev/cu.usbmodem101’ Traceback (most recent call last): File “serial/serialposix.py”, line 265, in open OSError: [Errno 16] Resource busy: '/dev/cu.usbmodem101’
During handling of the above exception, another exception occurred: Traceback (most recent call last):
File “nordicsemi/dfu/dfu_transport_serial.py”, line 113, in open File “serial/serialutil.py”, line 240, in init File “serial/serialposix.py”, line 268, in open serial.serialutil.SerialException: [Errno 16] could not open port /dev/cu.usbmodem101: [Errno 16] Resource busy: ‘/dev/cu.usbmodem101’ During handling of the above exception, another exception occurred: Traceback (most recent call last): File “nordicsemi/main.py”, line 294, in serial File “nordicsemi/dfu/dfu.py”, line 235, in dfu_send_images File “nordicsemi/dfu/dfu.py”, line 157, in _dfu_send_image File “nordicsemi/dfu/dfu_transport_serial.py”, line 115, in open nordicsemi.exceptions.NordicSemiException: Serial port could not be opened on /dev/cu.usbmodem101. Reason: [Errno 16] could not open port /dev/cu.usbmodem101: [Errno 16] Resource busy: '/dev/cu.usbmodem101’

Possible causes: - Selected Bootloader version does not match the one on Bluefruit device.

Please upgrade the Bootloader or select correct version in Tools->Bootloader. - Baud rate must be 115200, Flow control must be off. - Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.

Hi there,
SO these are good tips to telling you that the WRONG BSP is selected try the older NON-mbed 1.1.17 versions.

HTH
GL :slight_smile: PJ :v:

1 Like

I am hugely grateful for your thoughts on this. Two problems (I hope this is not showing my ignorance! 1) the NFC library doesnt seem to like “NON-mbed” version (I get compile error Compilation error: NFCT.h: No such file or directory ) 2) NON-mbed board software is current at 1.1.8. The earlier one is 1.1.7. (No version 1.1.17). Did you mean I should try 1.1.7? (This one also gives same compile error.

Would you advise I abandon the nRF52840 for work on NFC and try something else!?

PJ is the nRF champ… im sure he would not recomend anything else…

1 Like

Hi there,
Yes I mean the non-mbed versions, 1.1.7 try the old 1.1.1 and see if that works, I’m sure there is another maybe newer that work with the Nrf52 series and mbed. Check the threads on here I believe it is posted somewhere.
The idea behind this feature is to write to a NFC variable that is advertised when the reader scans it. Often they are used to Broadcast things like WiFi or BLE cred’s or configuration to connect and as a NFC TAG. basic not a reader only a TAG to be red. :laughing:
HTH
GL :slight_smile: PJ :v:

… it is confusing what all the bed and pillow talk is all about… i dont understand any of it so i stick to XIAO ESP32 devices…