RT1050: How to boot from SD Card

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

RT1050: How to boot from SD Card

Jump to solution
15,645 Views
haryanl
Contributor IV

Hi

I'm trying to boot from the SD card on the board RT1050

According to the Application Note AN12107 tutorial, use the IAR toolchain to generate the flash file. Then  using MFG tool to program an image to SD Card and Boot from the SD Card.

But I'm not using IAR right now,

so, how can i program an image to SD Card without using IAR. Example by MCUXpresso

Best Regards,

Haryanl

Labels (2)
Tags (2)
0 Kudos
1 Solution
15,414 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @haryanl ,

  Thanks a lot for your patient. Already finished the testing on my side.

  Good news to you, I totally make it works on my side.

  I attach my project, the generated .s file, maybe your generated code has issues.

  Please follow me to test it again:

1. Download the MCUBootUtility tool, this tool is more good to use, i use this download the code to the SD card.

https://github.com/JayHeng/NXP-MCUBootUtility/releases/tag/v3.3.1

2. Use my attached evkbimxrt1050_ew_gui_graphics_accelerator.s19 file, I generated the code which is located in the SDRAM. Find it in the attached file:

evkbimxrt1050_ew_gui_graphics_accelerator\Debug

3. Use the MCUbootutility tool to download the code

 SW7:1-ON 2-OFF 3-OFF 4-ON. usb cable connect to J28 and J9.

kerryzhou_1-1628663909353.png

dcd.bin path is:

NXP-MCUBootUtility-3.3.1\src\targets\MIMXRT1052\evkbmimxrt1050_xip_boot_header_dcd.bin

kerryzhou_2-1628663917582.png

Then connect  to ROM, 

kerryzhou_3-1628663998721.png

APP file just select my attached .s19 file, click step 3 all-in-one-Action button download the code and wait the download finished.

Then exit the MCUbootutility tool: reset device.

Now, SW7:1-ON 2-OFF 3-ON 4-OFF. press reset button on the board or repower on the board, you will find your LCD is working.

My video is in the attached 1.zip, this is the picture:

kerryzhou_4-1628664834170.jpeg

 

Wish it helps you!

Best Regards,

Kerry

 

 

View solution in original post

0 Kudos
29 Replies
1,313 Views
haryanl
Contributor IV

Hi Kerry

Do you want to copy your whole data to the external SDRAM and run it?
-> regardless of the way, I want to boot from the SD card

What's the RT1050 board you are using? MIMXRT1050-EVKB?
Your evkbimxrt1050_ew_gui_bezier_clock is your own project, not the SDK directly project?
Before you download to the SD card, whether it works on the external flash?
-> Yes, i using MIMXRT1050-EVKB. But, I have changed HW Hyper Flash to QSPI Flash,
So, from the SDK project, I edit the file "evkbimxrt1050_flexspi_nor_config.c" in the xip folder. And change The flash driver to MIMXRT1050-EVK_IS25WP064A.cfx
It works normally

because, I thought these settings didn't matter when loading image from SD card, I didn't change it

 Please correct me if I'm wrong

Best Regards,

Haryanl

0 Kudos
1,305 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @haryanl ,

    Seems you put the app in the sdcard, and after boot, the real running area is the SDRAM.

  I have a suggestion for your testing, can you debug the code which all put in the external SDRAM, just debug it when put the data in the external SDRAM, whether the code function works or not?

  What's I am afraid is your code running in the SDRAM meet issues, not download to the sdcard issues.

   Do you know how to debug the code in the SDRAM? you just need put the SDRAM in the memory first link, and click attach to RAM, then you can debug it.

   Any updated information, please kindly let me know.

Best Regards,

kerry

0 Kudos
1,256 Views
haryanl
Contributor IV

Hi Kerry

I'm sorry, I tried several ways, but I don't know how to debug the code in the SDRAM
With the instructions below, I seem to have successfully booted with SDRAM using project "evkmimxrt1020_iled_blinky",
 But it doesn't work with "evkbimxrt1050_ew_gui_bezier_clock"
https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/I-MX-RT-How-to-booting-to-SDRAM/ta-p/1125054

If you have EVK board can you check for me how to run the project ""evkbimxrt1050_ew_gui_bezier_clock"" from SD card. from there I can refer to your method

Sorry for the inconvenience, but looking forward to your help

Best Regards,

Haryanl

0 Kudos
1,186 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @haryanl 

  Which IDE you are using? As different IDE SDRAM debug is different, please also tell me what's the debugger you are using?

Best Regards,

kerry

0 Kudos
1,178 Views
haryanl
Contributor IV

Hi Kerry

I'm using MCUXpresso IDE
And download the code to the external SD by: MCUBootUtility or MCUXpresso Secure Provisional tool(SPT)

Best Regards,

Haryanl

0 Kudos
1,164 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @haryanl 

  What's the debugger you are using when you use the MCUXPresso?

  CMSIS DAP, or JLINK?

Best Regards,

Kerry

0 Kudos
1,138 Views
haryanl
Contributor IV

Hi Kerry

when I use the MCUXPresso, I'm using CMSIS DAP (Kinetis Open SDA or External LPC Link2)

best regards,

Haryanl

0 Kudos
1,122 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @haryanl 

   Thanks, when I have time, I will check it, please keep patient.

 

Best Regards,

Kerry

0 Kudos
1,104 Views
haryanl
Contributor IV

Hi Kerry

yes, looking forward to hearing from you

Thanks & Best Regards,

Haryanl

0 Kudos