Unable to boot from NAND flash in imxrt1170 eval board

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

Unable to boot from NAND flash in imxrt1170 eval board

Jump to solution
669 Views
Jeevan
Contributor III

Hi team,

We are using imxrt1170 eval board and we are trying to boot from the NAND flash as per the Dip switch setting shown in the IMXRT hardware user guide document "MIMXRT1170 EVK Board Hardware User’s
Guide".

Jeevan_1-1709129164007.png

But we are facing the below mentioned error in the MCUxpresso tool when we are debugging and flashing the code on the eval board. Please suggest the steps to resolve this issue and boot the code from the NAND flash.

Jeevan_0-1709129123467.png

 

0 Kudos
1 Solution
648 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Jeevan ,

  If you want to use the MIMXRT1170-EVK on board nandflash, you need to do the hardware rework, as default the nandflash related resistor is not connnected.

  Please test the SDK demo at first, let the nandflash semc demo works at first, you can refer to this post:

https://community.nxp.com/t5/i-MX-RT/NAND-flash-usage-with-SEMC-on-MIMXRT1170-EVKB/m-p/1797097#M2868...

After the nandflash works ,then you can consider to boot from the nandflash.

 

Wish it helps you!

Best Regards,

Kerry

View solution in original post

0 Kudos
9 Replies
178 Views
santhoshkumar_T
Contributor II

Hi @kerryzhou ,

We have tried NAND flash sdk example it was working fine.

And we have changed the switch setting too.

Below are the steps i have followed.

Step1:

santhoshkumar_T_0-1717733913564.png

 

 

SW1:1-OFF 2-OFF 3-OFF 4-ON ----> To enter serial mode.

SW2: 6th bit ON---> To boot from flash.

Step2:

Tried to connect from the NXP Boot utility.

It was connected to ROM but failed to connect to NAND Flash.(By selecting SEMC NAND in selection prompt)

Same thing is working for SPI Nor flash(If i select SPI NOR in selection prompt). Able to erase and program Nor flash. 

refer below image with error message for SEMC NAND

santhoshkumar_T_1-1717733937457.png

 

0 Kudos
144 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @santhoshkumar_T 

Please double check your solder, my experience, bad solder in the EVK will cause the nandflash issues.

Best Regards,

kerry

0 Kudos
128 Views
santhoshkumar_T
Contributor II

@kerryzhou 

I checked NAND flash SDK example on the same board it was able to read and write data from NAND flash.

But it was not connecting to NXP Boot utility to load the bootable image.

0 Kudos
125 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @santhoshkumar_T ,

 NandFlash boot need to use the non-xip app, and also need to configure the BOOT_CFG.

Please refer to this information:

kerryzhou_0-1718253866902.png

non-xip app means you need to put your demo in the internal RAM.

You can refer to this document:

https://www.cnblogs.com/henjay724/p/12591382.html

 

Wish it helps you!

Best Regards,

Kerry

 

 

 

0 Kudos
649 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Jeevan ,

  If you want to use the MIMXRT1170-EVK on board nandflash, you need to do the hardware rework, as default the nandflash related resistor is not connnected.

  Please test the SDK demo at first, let the nandflash semc demo works at first, you can refer to this post:

https://community.nxp.com/t5/i-MX-RT/NAND-flash-usage-with-SEMC-on-MIMXRT1170-EVKB/m-p/1797097#M2868...

After the nandflash works ,then you can consider to boot from the nandflash.

 

Wish it helps you!

Best Regards,

Kerry

0 Kudos
592 Views
Jeevan
Contributor III

Hi @kerryzhou ,

We have soldered the resistors (R1872 to R1879) connected to the NAND flash.

Jeevan_0-1709641808727.png

But still its throwing error (data bus error) when we change the dip switch setting to NAND flash.

Jeevan_1-1709642081003.png

 

0 Kudos
581 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Jeevan ,

 You can try to run the code in the internal RAM:

kerryzhou_0-1709877303233.png

As I find your side is the code is not running.

Another way, you can enter the serial download mode, and do the mass erase at first, you can refer to this post:

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT-board-recovery-for-debugger-connect-issues/ta...

At least, your code should can run.

If the code running, and the the nandflash operation still have issues, you need to check your hardware, maybe the solder is not good.

Please try it again on your side.

Best Regards,

kerry

 

0 Kudos
538 Views
Jeevan
Contributor III

Hi @kerryzhou ,

I have verified with QSPI flash, octal flash and serial downloader and all are working fine.

even i tried to run the code through SDRAM and internal RAM.

Only the NAND flash option is not working and i am not finding any driver for NAND flash in the listed options.

Jeevan_0-1710239862576.png

 

0 Kudos
530 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Jeevan ,

  Oh, I know your confusing point.

  Please note, the nand flash is not the XIP memory, so, you can't debug the code in the nand flash.

Normally, we generate the code, and use the tool to download code to the nand flash, and boot it from the nand flash.

  The tool, you can use the MCUBootutility or the SEC(mcuxpresso secure provisional tool):

1. https://github.com/JayHeng/NXP-MCUBootUtility/releases/tag/v6.1.0
the related user manual is:
https://github.com/JayHeng/NXP-MCUBootUtility

2. mcuxpresso secure provisional

https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools...

If you have any issues about the tool usage for the nandflash, you can help to create a new question post and let me know, we can discuss about the details in your new case, thanks.

 

Wish it helps you!

Best Regards,

Kerry

0 Kudos