Booting image from External SEMC NAND flash(MX30LFIGE8A) on i.mxrt1050 custom board as NON XIP image

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

Booting image from External SEMC NAND flash(MX30LFIGE8A) on i.mxrt1050 custom board as NON XIP image

802 Views
venkataddagatla
Contributor II

Hi,

We are trying to boot non-xip image from NAND flash(MX30LF1GE8AB-TI) on SEMC bus. We have used MFG tool to flash the image on SEMC bus NAND flash. As of now, we can able to write through MFG tool and read the image from the NXP MCU boot utility, here we confirmed the data integrity. But we could not able to boot from the flash on Power-on reset.

Generation of image 

1. Using the MCU expresso IDE tool we generated .axf file. We have built this code in SRAM_ITC

venkataddagatla_0-1655822519956.png

2. Linker settings

venkataddagatla_1-1655822694718.png

 

 

 

 

 

 

 

                                                                                                                                                                       3. Generated srecord file using binary utils

venkataddagatla_2-1655822970356.png

4. Generated sb file using mfg tool

venkataddagatla_3-1655823066716.png

5. imx-itcm-unsigned.bd used from Flashloader_i.MXRT1050_GA\Flashloader_RT1050_1.1\Tools\bd_file\imx10xx

venkataddagatla_4-1655823155604.jpeg

6. using the bd file we have generated the .bin files, below is the message

Flashloader_i.MXRT1050_GA\Flashloader_i.MXRT1050_GA\Flashloader_RT1050_1.1\Tools\elftosb\win>elftosb.exe -f imx -V -c imx-itcm-unsigned.bd -o ivt_app.bin bootable_image.s19
Section: 0x0
iMX bootable image generated successfully

venkataddagatla_5-1655823803313.png

7. using .bin files  and .bd file (program_semcnand_image) generated sb file 

program_semcnand_image

venkataddagatla_7-1655824190187.png

 

 

\Flashloader_i.MXRT1050_GA\Flashloader_i.MXRT1050_GA\Flashloader_RT1050_1.1\Tools\elftosb\win>elftosb.exe -f kinetis -V -c program_semcnand_image.bd -o boot_image.sb ivt_app.bin
Boot Section 0x00000000:
FILL | adr=0x00002000 | len=0x00000004 | ptn=0xd0020001
FILL | adr=0x00002004 | len=0x00000004 | ptn=0x00010101
FILL | adr=0x00002008 | len=0x00000004 | ptn=0x00020001
ENA | adr=0x00002000 | cnt=0x00000004 | flg=0x0010
ERAS | adr=0x00040000 | cnt=0x00140000 | flg=0x0010
LOAD | adr=0x00040000 | len=0x00009bd8 | crc=0xec9f6501 | flg=0x0010

venkataddagatla_6-1655823950264.png

8. we have copied boot_image.sb file into this path

Flashloader_i.MXRT1050_GA\Flashloader_i.MXRT1050_GA\Flashloader_RT1050_1.1\Tools\mfgtools-rel\Profiles\MXRT105X\OS Firmware

9. We used MMFG tool for flashing

venkataddagatla_14-1655824479224.png

 

venkataddagatla_15-1655824489919.png

MfgTool log is also attached, 

 

We confirmed by reading the image which is written is the same by using NXP MCU boot utility 

venkataddagatla_16-1655825045769.png

 

 

venkataddagatla_17-1655825155332.png

 

venkataddagatla_18-1655825248089.png

 

venkataddagatla_19-1655825630516.png

 

venkataddagatla_20-1655825645355.png

 

venkataddagatla_21-1655825660981.png

 

After carrying out all these above steps, we were able to write the image with the mfg tool and able to read the image using the NXP MCU boot utility.

 We have set the boot configuration (GPIOS) to boot.

 Boot mode: Internal mode 

 Boot configuration: NAND Flash( 001x b)

But we were unable to boot the image from SEMC NAND flash.

 

Need your support on booting the image from SEMC NAND flash.

Also Kindly assess whether the above procedure is correct or not? If not please let us know the correct procedure for booting semc NAND flash.

 

 

Labels (1)
0 Kudos
5 Replies

785 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Firstly, please comment out the enteryPointAddress and give it a try again.

jeremyzhou_0-1655862823670.png

Next, I'd like to suggest you use the NXPMCUboot utility to program the axf file directly, it's much easier than use the MfgTool.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

772 Views
venkataddagatla
Contributor II

We have tried the above-mentioned and commented out the enteryPointAddress. Still the image is not booting from the SEMC NAND flash.

Are there any other steps supposed to be done kindly suggest.

0 Kudos

764 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
Whether you ever use the NXPMCUboot utility to program the s19 file directly, if not, please give it a try.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

734 Views
venkataddagatla
Contributor II

We can able to boot from the SEMC NAND by using the NXP MFG tool. But the same thing we can not able do is by using from NXP Boot utility as you suggested.

Actually, after booting the image from NAND we want to run that image from SDRAM. And it seems bit difficult to add dcd data in the NXP MFG tool. 

But adding SDRAM dcd data in NXP boot utility is easier. The problem is we can not able to load the image and boot from NAND using the NXP boot utility.

We need support on this how we can run the image on SDRAM after booting from NAND flash.

 

0 Kudos

729 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
I was wondering if you can share the bd files that be used to generate the SB file for the NXP MFG tool to download, further, I'd like to suggest the log of NXP Boot utility, it can help us figure out the cause of boot-up failure.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos