How to boot RT1176 from Serial NAND NAND(W25N01GVZEIG) to SDRAM (32bits 64MB).

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to boot RT1176 from Serial NAND NAND(W25N01GVZEIG) to SDRAM (32bits 64MB).

1,343 次查看
pguan
Contributor I

How to boot RT1176 from Serial NAND NAND(W25N01GVZEIG) to SDRAM (32bits 64MB).

1) IDE using the MDK

2) Using the SDK M7 APP helloworld demo. and select the SDRAM-TXT-DEBUG

     SDRAM debug( DAP link is OK).  serial port can find the "hello world!"

3) Generate the HEX file

4) Using the MCU boot Utility V5.2.1,   

     --------------------------------------------

--------MCU Device ROM Info--------
Unique ID[31:00] = 0x828f4990
Unique ID[63:32] = 0x2a14900e
Current Version = K3.0.1
Target Version = T2.0.0
Life Cycle status = HAB Open
--------MCU Flashloader Info-------
Current Version = K2.7.0
Target Version = T1.0.4
--------MCU device eFusemap--------
(0x940) SYSBT_CFG0 = 0x0
(0x950) SYSBT_CFG1 = 0x0
(0x960) SYSBT_CFG2 = 0x8
BT_FUSE_SEL = 1'b0
When BMOD[1:0] = 2'b00 (Boot From Fuses), no app in boot device, MCU enters serial downloader mode directly
When BMOD[1:0] = 2'b10 (Internal Boot), MCU boots app according to both BOOT_CFGx pins and Fuse BOOT_CFGx
----------FlexRAM memory-----------
IOMUXC_GPR->GPR16 = --------
--------FlexSPI NAND memory-------
Page Size = 2.0 KB
Pages In Block = 64

     --------------------------------------------

 

FLASH hellow  SPI nand.  ( boot mode[1:0] == 10, config1[7:6] == 11) 

cannot boot from SPI nand.

 

My requirments:

1)  ROM store in the SPI nand.

2)  boot from SPI nand. and copy the image into SDRAM. 

3)  running.

0 项奖励
回复
6 回复数

1,318 次查看
Miguel04
NXP TechSupport
NXP TechSupport

Hi @pguan 

Please look into this community thread:

NAND FLASH XIP and boot modes

This post is similar to your question.

Best Regards, Miguel.

0 项奖励
回复

1,309 次查看
pguan
Contributor I
I also following the "NAND FLASH XIP and boot modes".
and perform following operation. cannot work.

1) According to the requirements,I modified the SCF file according to following

#define m_interrupts_start 0x80002000
#define m_interrupts_size 0x000023FF

#define m_text_start 0x80002400
#define m_text_size 0x001FFFFF

2) And add the following to marco.

XIP_BOOT_HEADER_ENABLE=1,

XIP_BOOT_HE



ADER_DCD_ENABLE=1

3) Generate the image.

4) Using the NXP-MCUBootUtility to download the iamge.

DEV UNSIGNED IMAGE BOOT.

5) Cannot run. ( but MDK debug is OK.)
0 项奖励
回复

1,280 次查看
Miguel04
NXP TechSupport
NXP TechSupport

Hi @pguan 

I did not understand, what do you mean with "Cannot run. ( but MDK debug is OK.)"

Is it possible for you to provide more information?

Best Regards, Miguel.

0 项奖励
回复

1,240 次查看
pguan
Contributor I

1.png

0 项奖励
回复

1,244 次查看
pguan
Contributor I

Thank you for your comments!

5) Cannot run

      means that the system (using the MCUBootutitly flash the NAND)cannot boot from NAND to SDRAM。

      MDK Debug is OK means I can debug the application using the MDK(running in SDRAM)

I think that i would miss some operation or where is mis-understand.

MDK generate the HEX image --> MCUbootutility --> boot from NAND to SDRAM。

 

0 项奖励
回复

1,184 次查看
Miguel04
NXP TechSupport
NXP TechSupport

Hi @pguan 

Sorry for the late reply,

You must change the configuration of the image to boot from the external SDRAM, refer to chapter 6.2.1.3 Image running from external SDRAM from the secure provisioning tool user's guide.

Miguel04_0-1692641397551.png

Best Regards, Miguel.

 

0 项奖励
回复