Sorry for the being all over the place but I think I have got around most of the previous problems by using nRF Connect.
Right now I am trying to flash the Arduino bootloader but it is still not easy as my windows machines wont mount the drive for drag and drop. This is the guide I started from: Convert RAK4631-R to RAK4631 | Meshtastic
Here is the log from the farthest I have gone so far:
- Enter serial commands: AT, AT-BOOT
- Disconnect port from serial terminal
- Run
adafruit-nrfutil.exe --verbose dfu serial --package rui3_nrf52840_bootloader_latest.zip --port COM21 -b 115200 --singlebank --touch 1200
in powershell
PS C:\rak> adafruit-nrfutil.exe --verbose dfu serial --package rui3_nrf52840_bootloader_latest.zip --port COM21 -b 115200 --singlebank --touch 1200
Upgrading target on COM21 with DFU package C:\rak\rui3_nrf52840_bootloader_latest.zip. Flow control is disabled, Single bank, Touch 1200
Touched serial port COM21
Opened serial port COM21
Starting DFU upgrade of type 2, SoftDevice size: 0, bootloader size: 36184, application size: 0
Sending DFU start packet
Timed out waiting for acknowledgement from device.
Sending DFU init packet
Failed to upgrade target. Error is: Attempting to use a port that is not open
Traceback (most recent call last):
File "C:\Python311\Lib\site-packages\nordicsemi\__main__.py", line 296, in serial
dfu.dfu_send_images()
File "C:\Python311\Lib\site-packages\nordicsemi\dfu\dfu.py", line 232, in dfu_send_images
self._dfu_send_image(HexType.BOOTLOADER, self.manifest.bootloader)
File "C:\Python311\Lib\site-packages\nordicsemi\dfu\dfu.py", line 203, in _dfu_send_image
self.dfu_transport.send_init_packet(init_packet)
File "C:\Python311\Lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py", line 155, in send_init_packet
self.send_packet(packet)
File "C:\Python311\Lib\site-packages\nordicsemi\dfu\dfu_transport_serial.py", line 241, in send_packet
self.serial_port.write(bytearray(pkt.data))
File "C:\Python311\Lib\site-packages\serial\serialwin32.py", line 306, in write
raise PortNotOpenError()
serial.serialutil.PortNotOpenError: Attempting to use a port that is not open
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.