Hi,
I got a problem when trying to configure boot device for external SEMC NAND (MT29F4G08ABADAWP) in RT1062 core. I used FlashLoader
(according to 痞子衡嵌入式:恩智浦i.MX RT1xxx系列MCU启动那些事(8)- 从Raw NAND启动)
as well as NXP MCU Boot Utility v3.5 to do that, but both failed.
In FlashLoader command line, the error is :
./blhost.exe -p COM9 -- configure-memory 0x100 0x2000
Ping responded in 1 attempt(s)
Inject command 'configure-memory'
Response status = 21218 (0x52e2) kStatus_SemcNAND_FailToUpdateDbbt
In NXP MCU Boot Utility, the error message is "MCU has entered Flashloader but failed to configure external memory" with responce "10004(0x2714) No response packet from target device."
Could you help with issue? Thanks in advance.
Can you please share SEMC NAND configuration page you set in tool with me?
Below are the Flashloader command lines:
./blhost.exe -p COM9 -- fill-memory 0x2000 0x4 0xD0010101
./blhost.exe -p COM9 -- fill-memory 0x2004 0x4 0x00010101
./blhost.exe -p COM9 -- fill-memory 0x2008 0x4 0x00020001
./blhost.exe -p COM9 -- configure-memory 0x100 0x2000
Ping responded in 1 attempt(s)
Inject command 'configure-memory'
Response status = 21218 (0x52e2) kStatus_SemcNAND_FailToUpdateDbbt
Below is the screen shot in MCU Boot Utility v3.5.0:
It's strange that I tried select MCU Device to "i.MXRT1050x" instead of "i.MXRT1060x" in the BootUtility tool with the same Boot device configuration settings, the configuration step passed:
Executing: D:\Program\NXP-MCUBootUtility-3.5.0\tools\blhost2_3\win\blhost -t 50000 -p COM9,115200 -j -- configure-memory 256 538976256
toolStatus: 0
commandOutput: {
"command" : "configure-memory",
"response" : [],
"status" : {
"description" : "0 (0x0) Success.",
"value" : 0
}
}
Executing: D:\Program\NXP-MCUBootUtility-3.5.0\tools\blhost2_3\win\blhost -t 5242000 -p COM9,115200 -j -- read-memory 0 1024 D:\Program\NXP-MCUBootUtility-3.5.0\tools\blhost2_3\win\vectors\semcNandFcb.dat 256
toolStatus: 0
commandOutput: {
"command" : "read-memory",
"response" : [ 1024 ],
"status" : {
"description" : "0 (0x0) Success.",
"value" : 0
}
}
It seems that we need to update RT106x flashloader file for MCUBootUtility tool/
1. Build srec file from \SDK_2_12_0_EVK-MIMXRT1060\boards\evkmimxrt1060\bootloader_examples\flashloader
2. Rename srec file to flashloader_user.srec and put it into \MCUBootUtility\src\targets\MIMXRT1062\
Hi Jay,
I've tried building a new Flashloader srec file from SDK 2.10.0 using IAR 9.20, then rename and copy it to MCUBootUtility, but the same problem pop up.
If MCUBootUtility has a bug here, could you help for how to do the configuration through blhost tool? I've tried it as below, but seems the settings are not suitable for my NAND device (MT29F4G08ABADAWP).
./blhost.exe -p COM9 -- fill-memory 0x2000 0x4 0xD0010101
./blhost.exe -p COM9 -- fill-memory 0x2004 0x4 0x00010101
./blhost.exe -p COM9 -- fill-memory 0x2008 0x4 0x00020001
./blhost.exe -p COM9 -- configure-memory 0x100 0x2000
Ping responded in 1 attempt(s)
Inject command 'configure-memory'
Response status = 21218 (0x52e2) kStatus_SemcNAND_FailToUpdateDbbt
Thanks!
I re-do the configuration using the blhost tool with the same settings today, but get a different error this time, that's very confusing:
Ping responded in 1 attempt(s)
Inject command 'configure-memory'
Response status = 21213 (0x52dd) Unknown error code (21213)
Turns out that with Flashloader v2.1 from the Flashloader RT106x release package, configure-memory command will give "kStatus_SemcNAND_FailToUpdateFcb" error, and if using Flashloader v2.8 from the SDK 2.10, the configure-memory command will give "Unkown error code" error.
Both of them can't work but give different error for the same configuration params.
Then which version should be the right one to do the configuration for RAW NAND boot?
I have ever verified Raw NAND boot on RT1170-EVK board with MCUBootUtility v2.2, you may use the flashloader file under MCUBootUtility v2.2