HI
first thing tested successfully : SuperMIni nRF52840 treated as a Feather nRF52840 with Adafuit’s nRF52 code
(only 9 usable GPIO , common to the 2 boards : IDE’s declared target and real target
)
OK : compilation , flash and execute.
second thing done : installation of PDcook’s nRF52 core with the 2 fixes from #11 (thanks @ptillisch )
Compilation OK for the selected boards Nice!Nnao ou SuperMini nRF52840
Flashing not ok with the following error (bootloader version problem as said in ‘possible causes’ )?
Opened serial port /dev/ttyACM0
Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 21148
Sending DFU start packet
Sending DFU init packet
Sending firmware file
Failed to upgrade target. Error is: write failed: [Errno 5] Input/output error
Traceback (most recent call last):
File "/home/al1/.local/share/pipx/venvs/adafruit-nrfutil/lib/python3.13/site-packages/serial/serialposix.py", line 621, in write
n = os.write(self.fd, d)
OSError: [Errno 5] Input/output error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/al1/.local/share/pipx/venvs/adafruit-nrfutil/lib/python3.13/site-packages/nordicsemi/main.py", line 296, in serial
dfu.dfu_send_images()
~~~~~~~~~~~~~~~~~~~^^
File "/home/al1/.local/share/pipx/venvs/adafruit-nrfutil/lib/python3.13/site-packages/nordicsemi/dfu/dfu.py", line 235, in dfu_send_images
self._dfu_send_image(HexType.APPLICATION, self.manifest.application)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/al1/.local/share/pipx/venvs/adafruit-nrfutil/lib/python3.13/site-packages/nordicsemi/dfu/dfu.py", line 206, in _dfu_send_image
self.dfu_transport.send_firmware(firmware)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/home/al1/.local/share/pipx/venvs/adafruit-nrfutil/lib/python3.13/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 213, in send_firmware
self.send_packet(pkt)
~~~~~~~~~~~~~~~~^^^^^
File "/home/al1/.local/share/pipx/venvs/adafruit-nrfutil/lib/python3.13/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 241, in send_packet
self.serial_port.write(bytearray(pkt.data))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/home/al1/.local/share/pipx/venvs/adafruit-nrfutil/lib/python3.13/site-packages/serial/serialposix.py", line 655, in write
raise SerialException('write failed: {}'.format(e))
serial.serialutil.SerialException: write failed: [Errno 5] Input/output error
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.
Here is the content of INFO_UF2.TXT in my SuperMiniRF52840 board , (Nice!Nano compatible) :
UF2 Bootloader 0.6.0 lib/nrfx (v2.0.0) lib/tinyusb (0.10.1-41-gdf0cda2d) lib/uf2 (remotes/origin/configupdate-9-gadbb8c7)
Model: nice!nano
Board-ID: nRF52840-nicenano
SoftDevice: S140 version 6.1.1
Date: Jun 19 2021