AnsweredAssumed Answered

Bootable image for flexSPI

Question asked by ranshalit on Sep 15, 2018
Latest reply on Sep 17, 2018 by ranshalit

Hello

I try to understand how to build bootable image for

flexspi flash.

As I see there are 2 approaches:

1. The linker in MCUXpresso IDE adds it to header of compiled image code, as done in example hello_world_xip.

2. using elftosb , so that it adds image header, to make it a bootable image, is that Right ?

 

 Using elftosb approach, I found the following tutotirals:

Generating a Bootable Image for the RT1050  

https://www.nxp.com/docs/en/application-note/AN12107.pdf 

 

 

Yet, I don't understand how flexSPI configuration paramaters are added to hello_world example  in these tutorials (not the same as hello_world_xip !)

 

Essentially, the example says to do the following:

1.

elftosb.exe -f imx -V -c ../../bd_file/imx10xx/imx-flexspinor-normal-unsigned.bd -o ivt_flexspi_nor_hello_world.bin hello_world.srec

2.

elftosb.exe -f kinetis -V -c ../../bd_file/imx10xx/program_flexspinor_image_HyperFlash.bd -o
boot_image.sb ivt_flexspi_nor_hello_world_nopadding.bin

 

Is it that the steps above add flexSPI configuration paramaters to image header ? Which command adds these parameters to image ? If not - where is it added to image header ?

 

I also don't find in "MCU Bootloader v2.5.0 Reference" documentation that flexSPI is mentioned as one of the device used for flash programming. So how is it that the tool can be used for flexSPI programming ?

 

Thank you ,

Ranran

Outcomes