[Core3506] Initial Flash to SPI NAND Flash Fails
Posted: 2026-04-26 16:32
I have created a custom board based on the Luckfox Lyra Pi's schematic with the Core3506 module without eMMC, instead I have connected SPI NAND flash.
When I try to flash the board with rkflash (LuckFox Lyra Zero W firmware or its compiled SDK output yield the same result) it fails with this output (RKDevTool v3.31 has identical output):
❯ sudo ./rkflash.sh update
Using ./tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/config.ini
Loading firmware...
Support Type:350F FW Ver:8.1.00 FW Time:2026-01-02 16:05:00
Loader ver:1.01 Loader Time:2026-01-02 16:03:32
Start to upgrade firmware...
Download Boot Start
Download Boot Success
Wait For Maskrom Start
Wait For Maskrom Success
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 have checked the soldering thoroughly, tried MX35LF4G24AD-Z4I and MX35LF4GE4AD-Z4I flash chips, but it did not help. The most telling thing I found is that after downloading the bootloader (from Luckfox Lyra Zero W as it seems to have the same setup), I cannot switch from the "selected storage", which is eMMC, to SPINAND (or any other option aparf ftom eMMC, but that may be expected as it is the one selected):
More observations:
1) The RK3506B appears only in maskrom mode and after flashing MiniLoader as "USB-MSC", which makes sense, as the device is not flashed.
2) When I try "ReadFlashInfo", I get that the Flash size is 0MB, but that may be due to it trying to read the default/selected eMMC.
More details: I have also tried to tried to boot from a SD card, but that very likely failed, because I copied the update.img with "dd" and not the SDDiskTool (because it does not recognize the internal micro SD card reader in my laptop). I will likely try this again later next week, when I get my hands on an external reader.
At this point I am out of ideas, so any suggestions/help would be greatly appreciated.
❯ sudo ./rkflash.sh update
Using ./tools/linux/Linux_Upgrade_Tool/Linux_Upgrade_Tool/config.ini
Loading firmware...
Support Type:350F FW Ver:8.1.00 FW Time:2026-01-02 16:05:00
Loader ver:1.01 Loader Time:2026-01-02 16:03:32
Start to upgrade firmware...
Download Boot Start
Download Boot Success
Wait For Maskrom Start
Wait For Maskrom Success
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 have checked the soldering thoroughly, tried MX35LF4G24AD-Z4I and MX35LF4GE4AD-Z4I flash chips, but it did not help. The most telling thing I found is that after downloading the bootloader (from Luckfox Lyra Zero W as it seems to have the same setup), I cannot switch from the "selected storage", which is eMMC, to SPINAND (or any other option aparf ftom eMMC, but that may be expected as it is the one selected):
More observations:
1) The RK3506B appears only in maskrom mode and after flashing MiniLoader as "USB-MSC", which makes sense, as the device is not flashed.
2) When I try "ReadFlashInfo", I get that the Flash size is 0MB, but that may be due to it trying to read the default/selected eMMC.
More details: I have also tried to tried to boot from a SD card, but that very likely failed, because I copied the update.img with "dd" and not the SDDiskTool (because it does not recognize the internal micro SD card reader in my laptop). I will likely try this again later next week, when I get my hands on an external reader.
At this point I am out of ideas, so any suggestions/help would be greatly appreciated.