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

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

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

703 Views
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 Kudos
6 Replies

678 Views
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 Kudos

669 Views
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 Kudos

640 Views
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 Kudos

600 Views
pguan
Contributor I

1.png

0 Kudos

604 Views
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 Kudos

544 Views
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 Kudos