RNode_Firmware icon indicating copy to clipboard operation
RNode_Firmware copied to clipboard

Error flashing latest firmware to RAK4631

Open cwlls opened this issue 6 months ago • 2 comments

Describe the Bug When using the rnodeconf -a /dev/... command the flashing proceeds through each step, but fails in the EEPROM validation step, leaving the device in an unusable state. This is true with versions 1.82 and 1.81. Flashing with version 1.80 works as anticipated.

To Reproduce Attempt to flash a RAK4631 device using firmware versions 1.82 or 1.81

Expected Behavior The flashing process should succeed leaving the device in a functional, albeit "experimental" state (given the current status of the RAK4631 within RNode)

Logs & Screenshots

------------------------------------------------------------------------------
                               Installer Ready

Ok, that should be all the information we need. Please confirm the following
summary before proceeding. In the next step, the device will be flashed and
provisioned, so make sure that you are satisfied with your choices.

Serial port     : /dev/cu.usbmodem12101
Device type     : RAK4631 779 - 928 MHz
Platform        : NRF52
Device MCU      : Nordic Semiconductor nRF52840
Firmware file   : rnode_firmware_rak4631.zip

------------------------------------------------------------------------------

Is the above correct? [y/N] y
[11:40:22] Checking firmware file availability...
[11:40:22] Retrieving latest version info from https://unsigned.io/firmware/latest/?v=2.4.0&variant=rnode_firmware_rak4631.zip
[11:40:24] The selected firmware for this board is version 1.82
[11:40:24] Using existing firmware file: rnode_firmware_rak4631.zip for version 1.82
[11:40:24] Verifying firmware integrity...
[11:40:25] Decompressing firmware...
[11:40:25] Firmware decompressed
[11:40:25] Flashing RNode firmware to device on /dev/cu.usbmodem12101
Upgrading target on /dev/cu.usbmodem12101 with DFU package /Users/cwlls/.config/rnodeconf/update/1.82/rnode_firmware_rak4631.zip. Flow control is disabled, Dual bank, Touch 1200
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
##################################
Activating new firmware
Device programmed.
[11:40:53] Done flashing
[11:40:53] Waiting for NRF52 reset...
[11:40:59] Opening serial port /dev/cu.usbmodem12101...
[11:41:02] Device connected
[11:41:02] Current firmware version: 1.82
[11:41:02] Reading EEPROM...
[11:41:03] Clearing old EEPROM, this will take about 15 seconds...
[11:41:26] Waiting for NRF52 reset...
[11:41:44] Loading signing key...
[11:41:44] Bootstrapping device EEPROM...
[11:41:50] EEPROM written! Validating...
[11:41:50] Setting firmware checksum...
[11:41:57] Waiting for NRF52 reset...
[11:42:18] EEPROM was written, but validation failed. Check your settings.

System Information

  • OS and version: macOS 15.3.2 (24D81)
  • Python version: Python 3.13.2 (running within a venv)
  • Program version: rnodeconf 2.4.0

Additional context Meshtastic was previously installed on this device, but after a successful flash to version 1.80 of RNode, the issues persist.

cwlls avatar Jun 03 '25 15:06 cwlls

Same issue here with Heltec T114 with firmware version 1.83:

------------------------------------------------------------------------------
                               Installer Ready

Ok, that should be all the information we need. Please confirm the following
summary before proceeding. In the next step, the device will be flashed and
provisioned, so make sure that you are satisfied with your choices.

Serial port     : /dev/cu.usbmodem2101
Device type     : Heltec Mesh Node T114 850 - 950 MHz
Platform        : NRF52
Device MCU      : Nordic Semiconductor nRF52840
Firmware file   : rnode_firmware_heltec_t114.zip

------------------------------------------------------------------------------

Is the above correct? [y/N] y
[20:46:12] Checking firmware file availability...
[20:46:12] Retrieving latest version info from https://unsigned.io/firmware/latest/?v=2.4.0&variant=rnode_firmware_heltec_t114.zip
[20:46:12] The selected firmware for this board is version 1.83
[20:46:12] Using existing firmware file: rnode_firmware_heltec_t114.zip for version 1.83
[20:46:12] Verifying firmware integrity...
[20:46:13] Decompressing firmware...
[20:46:13] Firmware decompressed
[20:46:13] Flashing RNode firmware to device on /dev/cu.usbmodem2101
Upgrading target on /dev/cu.usbmodem2101 with DFU package /Users/oherrala/.config/rnodeconf/update/1.83/rnode_firmware_heltec_t114.zip. Flow control is disabled, Dual bank, Touch 1200
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
#######
Activating new firmware
Device programmed.
[20:46:43] Done flashing
[20:46:43] Waiting for NRF52 reset...
[20:46:49] Opening serial port /dev/cu.usbmodem2101...
[20:46:52] Device connected
[20:46:52] Current firmware version: 1.83
[20:46:52] Reading EEPROM...
[20:46:52] Clearing old EEPROM, this will take about 15 seconds...
[20:47:05] Waiting for NRF52 reset...
[20:47:24] Loading signing key...
[20:47:24] Bootstrapping device EEPROM...
[20:47:29] EEPROM written! Validating...
[20:47:30] Setting firmware checksum...
[20:47:37] Waiting for NRF52 reset...
[20:47:58] EEPROM was written, but validation failed. Check your settings.

oherrala avatar Sep 13 '25 17:09 oherrala

Same with RAK4631

------------------------------------------------------------------------------
                               Installer Ready

Ok, that should be all the information we need. Please confirm the following
summary before proceeding. In the next step, the device will be flashed and
provisioned, so make sure that you are satisfied with your choices.

Serial port     : /dev/cu.usbmodem101
Device type     : RAK4631 779 - 928 MHz
Platform        : NRF52
Device MCU      : Nordic Semiconductor nRF52840
Firmware file   : rnode_firmware_rak4631.zip

------------------------------------------------------------------------------

Is the above correct? [y/N] y
[17:59:15] Checking firmware file availability...
[17:59:15] Retrieving latest version info from https://unsigned.io/firmware/latest/?v=2.4.0&variant=rnode_firmware_rak4631.zip
[17:59:15] The selected firmware for this board is version 1.83
[17:59:15] Using existing firmware file: rnode_firmware_rak4631.zip for version 1.83
[17:59:15] Verifying firmware integrity...
[17:59:16] Decompressing firmware...
[17:59:16] Firmware decompressed
[17:59:16] Flashing RNode firmware to device on /dev/cu.usbmodem101
Upgrading target on /dev/cu.usbmodem101 with DFU package /Users/micro/.config/rnodeconf/update/1.83/rnode_firmware_rak4631.zip. Flow control is disabled, Dual bank, Touch 1200
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
##################################
Activating new firmware
Device programmed.
[17:59:45] Done flashing
[17:59:45] Waiting for NRF52 reset...
[17:59:51] Opening serial port /dev/cu.usbmodem101...
[17:59:54] Device connected
[17:59:54] Current firmware version: 1.83
[17:59:54] Reading EEPROM...
[17:59:55] Clearing old EEPROM, this will take about 15 seconds...
[18:00:18] Waiting for NRF52 reset...
[18:00:36] Loading signing key...
[18:00:36] Bootstrapping device EEPROM...
[18:00:42] EEPROM written! Validating...
[18:00:42] Setting firmware checksum...
[18:00:50] Waiting for NRF52 reset...
[18:01:10] EEPROM was written, but validation failed. Check your settings.

jedahan avatar Oct 01 '25 22:10 jedahan

Has support for the RAK4631 been dropped. I have 1.83 install but just noticed that there is no RAK 4631 firmware in the latest release.

Sorry if I missed something.

B08Z avatar Nov 10 '25 20:11 B08Z

No, not at all. I just had some toolchain problems when building the RAK / ARM versions of the firmware for v1.84, so haven't uploaded any for those yet. They are still on v1.83.

Either way, there's not actually any real changes for the RAK builds between 1.83 and 1.84 either way. Only ESP stuff was really updated in this version, which is why I figured I'd just get the ESP stuff out now and not let that hang on the other stuff.

markqvist avatar Nov 10 '25 21:11 markqvist

Amazing, thanks for the quick reply.

Saw there was no change for the RAK but wanted to know.

All working on the Heltec32v3 Battery state reporting correctly (at least while its on charge)

Thanks very much its a great project / tool

No, not at all. I just had some toolchain problems when building the RAK / ARM versions of the firmware for v1.84, so haven't uploaded any for those yet. They are still on v1.83.

Either way, there's not actually any real changes for the RAK builds between 1.83 and 1.84 either way. Only ESP stuff was really updated in this version, which is why I figured I'd just get the ESP stuff out now and not let that hang on the other stuff.

B08Z avatar Nov 10 '25 21:11 B08Z