Bootloader to flash the external QSPI flash

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

Bootloader to flash the external QSPI flash

Jump to solution
4,757 Views
EmbeddedTech
Contributor III

Hi,  

We are using a custom board with iMXRT1062 and would like to add bootloader for flashing the external QSPI flash. I saw the app note AN12604SW for adding secondary bootloader to the application. It has an example for iMXRT1050. Is there an example available for iMXRT1060 or what changes should I make in the 1050 code in order to test in my board.

Thanks.

0 Kudos
Reply
1 Solution
4,380 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @EmbeddedTech ,

  Already finished the iar app version, you can try it on your side.

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT1060-OTA-bootloader-ISP-and-swap-rollback-usag...

 the code iar app.zip :

https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imxrt%40tkb/148/4/iar%20app.zip

When I download the evkmixrt1060_iled_blinky_ota_0x60040000_iar.bin, it also works on my side.

You can try it on your side.

 detail steps is in the above doc linker, comment.

 

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

If your question is solved, please help to mark the correct answer, just to close this case, thanks.

Any new issues, welcome to create the new case.

Best Regards,

Kerry

If your

 

View solution in original post

0 Kudos
Reply
23 Replies
4,157 Views
EmbeddedTech
Contributor III

Hi @kerryzhou,

Thanks a lot for your patience.

Now I am able to program my board using the 'ota bootloader' after following the instructions for iar.

Also, I have tried the 'RT1170 SBL ISP download SDRAM APP' and it works fine on my board. 

I would like to check with you, which of the above method is good to follow in my project. Are there any advantages of one over the other?

Thanks again.

 

0 Kudos
Reply
4,143 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @EmbeddedTech ,

  It's totally determined by your own choice, in fact, both can be used, just for your own feeling, which one is more easy to use to your own choice.

  Anyway, both method works on your side now. So, just choose it by yourself. SBL+SFW can support more ota method, you can check the sbl document, so, you can choose it by your own usage.

 

Wish it helps you!

Best Regards,

Kerry

341 Views
EmbeddedTech
Contributor III

Hi @kerryzhou ,

Sorry for the delay in response. I had problem with my board.

The modified application srec file looks like below, Is that correct?

S0130000696C65645F626C696E6B792E737265638B
S3156004000010B450E8004F8C43144340E80043002B7F
S31560040010F7D110BC704770B50446A40EDFF8F42619
S3156004002000F0FF03D3181B68C0F34C350646360A46
S3156004003006F01F06B540AB4301EA5031C1F30C012B
S3156004004005462D0A05F01F05A940194300F0FF0077
S3156004005010180160212C09D340F27A42DFF8B816F1
S31560040060DFF8B80600F000FCAFF30080202C05D062
S31560040070DFF8AC060068E040C007F9D470BD70B51F
S315600400800446A40EDFF88C2600F0FF03D3181B6821
S31560040090C0F34C350646360A06F01F06B540AB4338
S315600400A001EA5031C1F30C0105462D0A05F01F051E
S315600400B0A940194300F0FF0010180160212C09D3F0
S315600400C04FF49462DFF85016DFF8500600F0CCFB6C
S315600400D0AFF30080202C05D0DFF844060068E040CA
S315600400E0C007F9D470BD70B504460D462646360A77
S315600400F004F01F04082E09D340F2C242DFF8181632
S31560040100DFF8200600F0B0FBAFF30080A5402A4676
S31560040110032000FA04F42146DFF80C0600EB86009F
S31560040120BDE870406CE70021DDE7DFF80016086083
S315600401307047DFF8FC1508607047002AC1F30B416D
S3156004014005D00818001D4FF4803101607047081807
S3156004015008304FF4803101607047090B002A426809
S3156004016003D052EA01314160704722EA01314160AD
S31560040170704710B40B46042B44680ADB03238B4098
S3156004018024EA030302F0030202FA01F1194341600F

I am not sure if the header data is included in the above as mentioned below,

2.1.3 linker file modification

In the evkmimxrt1060_iled_blinky_debug.ld, add boot_hdr, length is 0X400.

We can use the MCUXpresso IDE linkscripts folder, add the .ldt files to modify the linker file.

Here, in the project, add one linkscripts folder, add the boot_hdr_MIMXRT1060.ldt file, build .

 

Your help on this is highly appreciated.

Thanks.

0 Kudos
Reply