Page 1 of 1

[Luckfox Lyra Zero W] Entering maskrom after flashing wrong image

Posted: 2025-08-24 10:10
by VayuDev
Hello,

I accidentally flashed a luckfox lyra firmware to the luckfox lyra zero w, which aborted mid-way with something like "partition size too small". Now the device is no longer recognized on my PC. I tried entering maskrom mode by shorting on of the pins of the flash chip as described in the luckfox lyra documentation, which results in the following output in linux:

Code: Select all

[  793.291945] usb 1-3.3: USB disconnect, device number 13
[ 1043.069003] usb 1-3.3: new full-speed USB device number 14 using xhci_hcd
[ 1043.142042] usb 1-3.3: device descriptor read/64, error -32
[ 1043.318943] usb 1-3.3: device descriptor read/64, error -32
[ 1043.495020] usb 1-3.3: new full-speed USB device number 15 using xhci_hcd
[ 1043.568038] usb 1-3.3: device descriptor read/64, error -32
[ 1043.743050] usb 1-3.3: device descriptor read/64, error -32
[ 1043.846123] usb 1-3-port3: attempt power cycle
[ 1044.432902] usb 1-3.3: new full-speed USB device number 16 using xhci_hcd
[ 1044.433108] usb 1-3.3: Device not responding to setup address.
[ 1044.638150] usb 1-3.3: Device not responding to setup address.
[ 1044.845991] usb 1-3.3: device not accepting address 16, error -71
[ 1044.846080] usb 1-3.3: WARN: invalid context state for evaluate context command.
[ 1044.918991] usb 1-3.3: new full-speed USB device number 17 using xhci_hcd
[ 1044.919093] usb 1-3.3: Device not responding to setup address.
[ 1045.126165] usb 1-3.3: Device not responding to setup address.
[ 1045.333968] usb 1-3.3: device not accepting address 17, error -71
[ 1045.334061] usb 1-3.3: WARN: invalid context state for evaluate context command.
[ 1045.334120] usb 1-3-port3: unable to enumerate USB device
Windows shows similar error. Is there any way to save the device? Thanks!

Re: [Luckfox Lyra Zero W] Entering maskrom after flashing wrong image

Posted: 2025-08-26 2:50
by Crocodile
Hello, please try to use RKDevTool under Windows to determine whether Luckfox Lyra Zero has entered the Maskrom mode.

The RK3506B of Luckfox Lyra Zero and the RK3506 of Luckfox Lyra have significant differences in the initial DDR mode. The USB enumeration error is likely caused by the DDR not operating normally, resulting in incorrect configuration of the corresponding USB functions.

Re: [Luckfox Lyra Zero W] Entering maskrom after flashing wrong image

Posted: 2025-12-18 19:55
by VayuDev
Hello,

sorry for taking so long, I didn't see your reply and now spent some time on this issue again. Thanks for the hint. So, I visited the wiki again and I got the Luckfox Lyra into maskrom, but flashing failed now. I put a screenshot below from windows:
Screenshot_20251218_204216-1.png
And here is the output on Linux:

Code: Select all

Loading firmware...
Support Type:350F	FW Ver:8.1.00	FW Time:2025-12-18 18:27:01
Loader ver:1.01	Loader Time:2025-12-18 17:47:25
Start to upgrade firmware...
Test Device Start
Test Device Success
Check Chip Start
Check Chip Success
Get FlashInfo Start
Get FlashInfo Success
Prepare IDB Start
Prepare IDB Fail
Note:please check flash if in the support list or welding issue  
I even tried removing the solder bridge after it has connected but that didn't seem to help, at least not on windows. Do you have any ideas?

Re: [Luckfox Lyra Zero W] Entering maskrom after flashing wrong image

Posted: 2025-12-22 8:45
by Crocodile
I suggest you try creating an SD boot card to access the system via the SD card. Make sure all other hardware is in good condition. From the log, it seems there is a possibility of damage to the SPI-NAND and the main controller RK3506B.