Rt1062 boot from external parallel RAW NAND

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Rt1062 boot from external parallel RAW NAND

1,150 Views
BlackTurbo
Contributor III

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.

@jay_heng 

 

0 Kudos
7 Replies

1,142 Views
jay_heng
NXP Employee
NXP Employee

Can you please share SEMC NAND configuration page you set in tool with me?

0 Kudos

1,138 Views
BlackTurbo
Contributor III

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:

BlackTurbo_0-1663641985263.png

 

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
}
}

 

0 Kudos

1,133 Views
jay_heng
NXP Employee
NXP Employee

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\

1,077 Views
BlackTurbo
Contributor III

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!

Tags (1)
0 Kudos

1,023 Views
BlackTurbo
Contributor III

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)

0 Kudos

999 Views
BlackTurbo
Contributor III

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?

0 Kudos

966 Views
jay_heng
NXP Employee
NXP Employee

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

恩智浦i.MX RT1xxx系列MCU启动那些事(8.A)- SEMC NAND启动时间(RT1170)

0 Kudos