Where can I find the example of bootloader for imxrt 1050

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

Where can I find the example of bootloader for imxrt 1050

Jump to solution
2,107 Views
andydong1
Contributor I

Hi all,

As title, can someone provide the example for me ? 

I store image in dataflash and I want to use bootloader to update my application from SD card.

thanks

Best Regards,

Andy Dong 

0 Kudos
1 Solution
1,821 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Andy Dong,

    So, you need to read the flashloader source code carefully, you can boot from the app, then check the app version, then decide update the app or not.,about the SD card  and nor flash driver, the flashloader already contains it, you can check the code carefully. You need to modify it by yourself.

   

led_demo_evk code in folder:

SDK_2.6.1_EVKB-IMXRT1050\boards\evkbimxrt1050\bootloader_examples\demo_apps

is just the app code.

The flashloader code is:

\SDK_2.6.1_EVKB-IMXRT1050\boards\evkbimxrt1050\bootloader_examples\flashloader

So, if you want to write your own flashloader code, you need to refer the flashloader project, not the led, led is just the app code.

Wish it helps you!

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

Have a great day,
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
7 Replies
1,821 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Andy Dong,

Please refer to the NXP official flashloader:

Flashloader i.MX-RT1050

The source code can be downloaded from the SDK, please go to this link:

Welcome | MCUXpresso SDK Builder 

Choose the EVKB-RT1050 board, in the middleware, please select  mcu-boot:

pastedImage_2.png

The flashloader already contains the SD card boot, please refer to it.

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

Have a great day,
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,821 Views
andydong1
Contributor I

Hi, Kerry Zhou

Thanks for your quick reply

I have downloaded the source code

Can you tell me how to use flashloader to update my application from SD card for detail ?

Thanks!

Best Regards,

Andy Dong

0 Kudos
1,821 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Andy Dong,

    If you also download the flashloader:

https://www.nxp.com/webapp/Download?colCode=IMX-RT1050-FLASHLOADER&appType=license 

There has some document about it.

  But, about the detail usage, if you are using the official MIMXRT1050-EVKB board, please download the MCUBootUtility tool from this link:

https://github.com/JayHeng/NXP-MCUBootUtility/releases/tag/v1.4.0

The software user manual link is:

GitHub - JayHeng/NXP-MCUBootUtility: A one-stop boot utility tool based on Python2.7+wxPython4.0, it... 

Wish it helps you!

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

Have a great day,
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,821 Views
andydong1
Contributor I

Hi, Kerry Zhou

I know the MCUBootUtility

But I think I didn't express my demand clearly.

I will put the latest application (image) in SD card 

Everytime when I power on the board, the flashloader ( bootloader?) will check the version of application

If it's not the latest one , then flashloader will update the application from SD card to dataflash(maybe Nor flash or SDRAM).

Just like the firmware upgrade. Can you tell me how to implement it ?

 

Also, In MIMXRT1052xxxxB -> bootloader_examples 

led_demo_evk_ram, led_demo_evk_flexspi_nor, flashloader, 

These three examples don't have any readme.txt 

I don't know what these three example exactly do. Can you explain to me ?

Thanks!!

Best Regards,

Andy Dong

0 Kudos
1,822 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Andy Dong,

    So, you need to read the flashloader source code carefully, you can boot from the app, then check the app version, then decide update the app or not.,about the SD card  and nor flash driver, the flashloader already contains it, you can check the code carefully. You need to modify it by yourself.

   

led_demo_evk code in folder:

SDK_2.6.1_EVKB-IMXRT1050\boards\evkbimxrt1050\bootloader_examples\demo_apps

is just the app code.

The flashloader code is:

\SDK_2.6.1_EVKB-IMXRT1050\boards\evkbimxrt1050\bootloader_examples\flashloader

So, if you want to write your own flashloader code, you need to refer the flashloader project, not the led, led is just the app code.

Wish it helps you!

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

Have a great day,
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,821 Views
andydong1
Contributor I

Hi, Kerry Zhou

One more thing I want to check.

In Flashloader_RT1050_1.1\Tools\mfgtools-rel\Profiles\MXRT105X\OS Firmware\ ivt_flashloader.bin

this .bin is generated from this Project ( \boards\evkbimxrt1050\bootloader_examples\flashloader ) ,right? 

Best Regards,

Andy Dong

0 Kudos
1,821 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Andy Dong,

  Yes you are right.

Wish it helps you!

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

Have a great day,
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