RT1050: Generate bootable image with IS25LP064A QSPI flash

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

RT1050: Generate bootable image with IS25LP064A QSPI flash

Jump to solution
1,228 Views
jayyehtw
Contributor III

Hi.

I have modified the imxrt1050-evkb on board flash from IS25WP064A to IS25LP064A and also other components accordingly.

The modification was successful, I could build the hello_world example and run in XiP mode with the GUI flash tool in the MCUXpresso.

The next step I would like to test generating the bootable image.

Most steps were referenced from the following link:

Generating a Bootable Image for the RT1050 

But it failed, after programmed the boot_image.sb, the debug UART didn't print hello world.

The steps I took:

1. XIP_BOOT_HEADER_ENABLE set to 0

jayyehtw_0-1608784377248.png

2. In the MCU settings, change the BOARD_FLASH location to start with 0x60002000

jayyehtw_1-1608784422938.png

3. Rebuild the project and right click on the axf file to generate the s19 file

jayyehtw_2-1608784502186.png

4. Set entryPointAddress to 0x60002000 in the imx-flexspinor-normal-unsigned.bd

jayyehtw_3-1608784660671.png

5. Run the commands to generate the boot_image.sb

elftosb.exe -f imx -V -c imx-flexspinor-normal-unsigned.bd -o application.bin evkbimxrt1050_hello_world.s19
elftosb.exe -f kinetis -V -c program_flexspinor_image_qspinor.bd -o boot_image.sb application_nopadding.bin

6. Put the imxrt1050-evkb to serial downloader mode(sw7:0001) and program with the MfgTool2, the result showed successful

7. Put the imxrt1050-evkb to internal boot mode(sw7:0010) and reset the device

Is there any step missing or wrong?

 

Labels (1)
0 Kudos
1 Solution
1,194 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi jayyehtw,

   Thanks for your interest in the NXP MIMXRT product, I would like to provide service for you.

1. Do you mind to use another tool, which will be more easy to use.

https://github.com/JayHeng/NXP-MCUBootUtility/archive/v2.4.0.zip
the related user manual is:
https://github.com/JayHeng/NXP-MCUBootUtility

Or the MCUXpresso secure provisioning tool:

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

 

2. About your MFGTool issue with the image.sb

In your step 4. Set entryPointAddress to 0x60002000 in the imx-flexspinor-normal-unsigned.bd

Please change the entryPointAddress to your app.bin entrypoint.That is the 32bit data in your app address 0x60002004.

Eg:

image.png

entryPointAddress = 0X60004C9D.

 

Please try it again.

If you still have questions about it, please kindly let me know.

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

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

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.

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

 

 

  

View solution in original post

0 Kudos
3 Replies
1,195 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi jayyehtw,

   Thanks for your interest in the NXP MIMXRT product, I would like to provide service for you.

1. Do you mind to use another tool, which will be more easy to use.

https://github.com/JayHeng/NXP-MCUBootUtility/archive/v2.4.0.zip
the related user manual is:
https://github.com/JayHeng/NXP-MCUBootUtility

Or the MCUXpresso secure provisioning tool:

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

 

2. About your MFGTool issue with the image.sb

In your step 4. Set entryPointAddress to 0x60002000 in the imx-flexspinor-normal-unsigned.bd

Please change the entryPointAddress to your app.bin entrypoint.That is the 32bit data in your app address 0x60002004.

Eg:

image.png

entryPointAddress = 0X60004C9D.

 

Please try it again.

If you still have questions about it, please kindly let me know.

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

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

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
1,156 Views
jayyehtw
Contributor III

Hi

With the suggested tool: NXP-MCUBootUtility, I was able to make the bootable image to work.

Thanks a lot!

0 Kudos
1,150 Views
kerryzhou
NXP TechSupport
NXP TechSupport

You are welcome!

 Any new questions in the future, welcome to create the new question post!

Best Regards,

Kerry

0 Kudos