RAK4631
I have a slow blinking green light (throbbing?), after modifying a setting on the device in Meshtastic. Hoping you have a RAK image I can flash it with to restore the corrupted boot loader.
during boot I get this error on the serial console:
lfs error:493: Corrupted dir pair at 19 18
I tried to flash the Bootloader using nRF Connect Programmer and the bootloader.hex from the RAK github site, but Programmer says its it not in MCUBoot and theres nothing it can do to communicate.
The serial terminal will connect, and get the boot load sequence seen below, but it doesn’t respond when I run commands like 'AT+DFU, ‘AT+FORMAT’ or ‘AT+RESET’
Is there a RAK tool I missed to just get it back to ‘factory’?
Thanks!
Serial Connection view during attempted boot:
@INFO | ??:??:?? 0
//\ E S H T /\ S T / C
DEBUG | ??:??:?? 0 Filesystem files:
DEBUG | ??:??:?? 0 prefs (directory)
DEBUG | ??:??:?? 0 config.proto (166 Bytes)
DEBUG | ??:??:?? 0 channels.proto (57 Bytes)
DEBUG | ??:??:?? 0 db.proto (347 Bytes)
lfs error:493: Corrupted dir pair at 19 18
DEBUG | ??:??:?? 0 Power::lipoInit lipo sensor is not ready yet
DEBUG | ??:??:?? 0 Use analog input 5 for battery level
INFO | ??:??:?? 0 Scan for i2c devices
DEBUG | ??:??:?? 0 Scan for I2C devices on port 1
INFO | ??:??:?? 0 No I2C devices found
DEBUG | ??:??:?? 0 acc_info = 0
INFO | ??:??:?? 0 S:B:9,2.5.18.89ebafc
INFO | ??:??:?? 0 Build timestamp: 1735423672
DEBUG | ??:??:?? 0 Reset reason: 0x0
DEBUG | ??:??:?? 0 Set random seed 2275464391
INFO | ??:??:?? 0 Init NodeDB
INFO | ??:??:?? 0 Load /prefs/db.proto
ERROR | ??:??:?? 0 LFS assert: head >= 2 && head <= lfs->cfg->block_count
ERROR | ??:??:?? 0 Trying FSCom.format()
AT+DFU
-
What firmware version? Can it be obtained with AT+VER=
I can make a serial connection, but it fails to respond -
Windows 11, latest build
-
It is stuck 100% of the time. I can double click the reset button and get it to enter DFU mode on my PC as a mapped drive, and drag over a fw image, but it doesnt flash it correctly.
-
How can we replicate the problem? Happens every time I give the device power.
-
Provide source code if custom firmware is used or link to example if RAKwireless example code is used.
I know you don’t support mashtastic, was hoping you could point me to a tool or image at RAK that I could use to get it back into working order.
I’m going to try the procedure from WisBlock/bootloader/RAK4630 at master · RAKWireless/WisBlock · GitHub
but like I said, every time I try to flash it in DFU mode, it attempts to reboot and fails.