How to write program of RT1020 in empty QSPI Flash via USB

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

How to write program of RT1020 in empty QSPI Flash via USB

Jump to solution
725 Views
Edgard
Contributor III

I have one question about dealing with RT1020 with external memory.

I don't know how to write the programm data in external memory via USB.
I checked the application note AN12108, but I couldn't find the way.

Before, if I would write the data in Flash memory on the board, I had to used UART connection at first.
Then when I wrote program in advance via UART, next I could overwrite program in the memory with some tools.
But this time, I don't want to use UART port.

Then I would like to know the following;

1 Is it possible to write program directly in QSPI Flash memory with MFG tool?
2 Is it better to prepare QSPI Flash memory with boot program preset?

Thanks in advance.

0 Kudos
1 Solution
708 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Edgard ,

   You still can use the USB to program the RT1020 external QSPI flash with the blhost, just the UART command change to the USB command.

    You can refer to this application note:

https://www.nxp.com/docs/en/nxp/application-notes/AN12238.pdf

   1 Is it possible to write program directly in QSPI Flash memory with MFG tool?

=>Answer: MFG tool can program QSPI, but not the must.

You still can use the blhost, elftosb, sdphost directly, you can refer to my post:

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT10xx-image-reserve-the-APP-FCB-methods/ta-p/15...

or the MCUBootutility, SPT tools:

MCUBootutility:

https://github.com/JayHeng/NXP-MCUBootUtility/releases/tag/v4.1.1

the related user manual is:
https://github.com/JayHeng/NXP-MCUBootUtility

SPT:

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

 


2 Is it better to prepare QSPI Flash memory with boot program preset?

=>Answer: Do you mean the FCB for boot? If you use the tools, you even don't need to generate the FCB with app, just the app is enough, the tool will help you to realize it.

Wish it helps you!

Best Regards,

Kerry

View solution in original post

4 Replies
701 Views
Edgard
Contributor III

Dear @kerryzhou 

thanks for showing me some knowledges about boot system.

Especially,  your advice of my question No.2 is very useful for me to desing the system with RT1020!

Kindest Regards

0 Kudos
697 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Edgard ,

  You are always welcome!

   If you meet any issues in the future, just create the question post, and AT me, I will help you for the details.

Best Regards,

Kerry

693 Views
Edgard
Contributor III
Dear @kerryzhou

thanks a lot!
I appreciate your great support!

Kindest Regards
Edgard
0 Kudos
709 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Edgard ,

   You still can use the USB to program the RT1020 external QSPI flash with the blhost, just the UART command change to the USB command.

    You can refer to this application note:

https://www.nxp.com/docs/en/nxp/application-notes/AN12238.pdf

   1 Is it possible to write program directly in QSPI Flash memory with MFG tool?

=>Answer: MFG tool can program QSPI, but not the must.

You still can use the blhost, elftosb, sdphost directly, you can refer to my post:

https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/RT10xx-image-reserve-the-APP-FCB-methods/ta-p/15...

or the MCUBootutility, SPT tools:

MCUBootutility:

https://github.com/JayHeng/NXP-MCUBootUtility/releases/tag/v4.1.1

the related user manual is:
https://github.com/JayHeng/NXP-MCUBootUtility

SPT:

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

 


2 Is it better to prepare QSPI Flash memory with boot program preset?

=>Answer: Do you mean the FCB for boot? If you use the tools, you even don't need to generate the FCB with app, just the app is enough, the tool will help you to realize it.

Wish it helps you!

Best Regards,

Kerry