Boot to SDRAM, MCU Boot utility How to Use (download)

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

Boot to SDRAM, MCU Boot utility How to Use (download)

Jump to solution
390 Views
Seongyon_Jeong
Contributor III

Hi

From Boot to SDRAM manual,

Followed to Step 2.
I created an s19 file, and I'm going to follow the guide to execute the sentence below.

"After all these step, you can open MCUBootUtility and download the .s19 file to NOR flash."

However, I couldn't find the download button or function in the picture below.

Seongyon_Jeong_0-1705376766719.png

anyway,   From https://github.com/JayHeng/NXP-MCUBootUtility?tab=readme-ov-file

First 1. Target setting -> i.mxrt 1020 LQFP 100/144 

Seongyon_Jeong_1-1705378145375.png

2.  To connect , Board  dip switch change to  0001 (serial download mode)

and click button  [reconnect], 

Seongyon_Jeong_2-1705378267495.png 

Seongyon_Jeong_3-1705378289079.png

3.     click browse , and    insert path .s19 file   

Seongyon_Jeong_4-1705378399688.png

 

 

4.  What I have to do ???  ( For downloading  .s19 file  to   i.mxrt1020 EVK board )

anyway, I Clicked button  [all in one Action]

But  Error Box.  Occur

Seongyon_Jeong_5-1705378476131.png

 

5.    so.. Next  I  read Step 3  3. Add DCD by MCUBootUtility

     in Step 3,   DCD option,      I  found evkmimxrt1020_xip_boot_header_dcd.bin.  so I  insert it

Seongyon_Jeong_6-1705378675632.png

6.   click All in one Action ,  but      same result.

Seongyon_Jeong_7-1705378782902.png

 

   What is that ???,.,,   How Can I download .s19  file to EVK (RT1020 board)

I attached my s19 file (zip compression, attach file type constraint)  made from  SDK example.

0 Kudos
1 Solution
356 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @Seongyon_Jeong ,

Thanks for contacting NXP tech support!

Since I don't have RT1020-EVK on my side yet, so far, I tested the operation process using RT1060-EVK locally and it is successful. For the time being, it is provided for your reference.

First, let's make sure that there are two main methods mentioned in this guide.

1. Use MCUXpresso to generate the image linked to the SDRAM and give him an padding header, then use MCUBootUtility to download it to the board;

2. Use MCUXpresso to generate the image without padding header, then use MCUBootUtility to pad it and download it to the board;

I am using the first method.

Step 1: Move the SDRAM to first place;

Gavin_Jia_0-1705568977029.png

Step2:Make sure the two macros mentioned in the guide are correct, and check the "link to ram" box;

Gavin_Jia_1-1705569144498.png

Gavin_Jia_3-1705569209743.png

Step3:Apply the above changes and do the first build; the ld script can only be modified after the build is complete.

Step4: Find the ld script and add the padding header;

Gavin_Jia_4-1705569387039.png

Step5:deselect “Manage linker script” in last screenshot. Then you can build again(the second time).

Gavin_Jia_5-1705569500878.png


Step 6: The last thing is to generate the s19 file and download the IMAGE using MCUBootUtilitiy;

Gavin_Jia_6-1705569627002.png

Note:With this method, there is no need to run "Device Configuration Data" in MCUBootUtility, otherwise it would be a duplicate. However, if you choose the second method to add the header in MCUBootUtility, you need to modify the MCU Memory Map in IDE with appropriate offset.

 

Best regards,
Gavin

 

 

View solution in original post

0 Kudos
1 Reply
357 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @Seongyon_Jeong ,

Thanks for contacting NXP tech support!

Since I don't have RT1020-EVK on my side yet, so far, I tested the operation process using RT1060-EVK locally and it is successful. For the time being, it is provided for your reference.

First, let's make sure that there are two main methods mentioned in this guide.

1. Use MCUXpresso to generate the image linked to the SDRAM and give him an padding header, then use MCUBootUtility to download it to the board;

2. Use MCUXpresso to generate the image without padding header, then use MCUBootUtility to pad it and download it to the board;

I am using the first method.

Step 1: Move the SDRAM to first place;

Gavin_Jia_0-1705568977029.png

Step2:Make sure the two macros mentioned in the guide are correct, and check the "link to ram" box;

Gavin_Jia_1-1705569144498.png

Gavin_Jia_3-1705569209743.png

Step3:Apply the above changes and do the first build; the ld script can only be modified after the build is complete.

Step4: Find the ld script and add the padding header;

Gavin_Jia_4-1705569387039.png

Step5:deselect “Manage linker script” in last screenshot. Then you can build again(the second time).

Gavin_Jia_5-1705569500878.png


Step 6: The last thing is to generate the s19 file and download the IMAGE using MCUBootUtilitiy;

Gavin_Jia_6-1705569627002.png

Note:With this method, there is no need to run "Device Configuration Data" in MCUBootUtility, otherwise it would be a duplicate. However, if you choose the second method to add the header in MCUBootUtility, you need to modify the MCU Memory Map in IDE with appropriate offset.

 

Best regards,
Gavin

 

 

0 Kudos