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.