Write to QSPI NOR flash on FlexSPI2 using blhost

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to QSPI NOR flash on FlexSPI2 using blhost

450 Views
dh1
Contributor II

Hello

We have an RT1062 on our board, which is equipped with two QSPI NOR flashs, one on FlexSPI and one on FlexSPI2.

In the first flash, the firmware is stored and executed in place. In the second flash on FlexSPI2, application data is stored.

We can successfully program the first flash with blhost and the flashloader.

Is there a way to erase and program the flash on FlexSPI2 using blhost and the flashloader?

Best regards,
Daniel

0 Kudos
4 Replies

436 Views
jeremyzhou
NXP TechSupport
NXP TechSupport

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
2) Is there a way to erase and program the flash on FlexSPI2 using blhost and the flashloader?
-- No, I'm afraid not, however, in the SDK library, it contains a flexspi_nor_polling_transfer demo and you can adapt the demo to handle the external serial Nor flash such as program, read, and other operations.
Hope it helps.
Have a great day,
TIC

 

-------------------------------------------------------------------------------
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

414 Views
jeremyzhou
NXP TechSupport
NXP TechSupport

Hi,
Thanks for your reply.
1) Do you agree or do you see some showstopper?
-- Yes, I agree, in theory, it's available to make it via enhancing the flashloader source code to support some customize commands such as handle the external QSPI flash which connect the FlexSPI 2 port.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
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

429 Views
dh1
Contributor II

Dear TIC,

Thanks for your reply.

Yes we can already program and read the flash out of our application. But we wanted to program it in the production.

I have looked into the source code of the flash loader. It seems it should be possible to enhance the flash loader to program the second flash with medium effort. Do you agree or do you see some show stopper?

Regards,
Daniel

0 Kudos

423 Views
mjbcswitzerland
Specialist V

Hi

See https://www.utasker.com/docs/iMX/uTasker_iMX-RT-Programmer.pdf

This is the uTasker production programmer project which is going to be released shortly.

See the appendix for some technical detail of production programing phases and note that the flash driver is loaded during the process. This means that for each target HW and each QSPI type on that target HW there needs to be a dedicated program loaded (also written and maintained).

Since the uTasker project supports all i.MX RT 10xx targets and most typical QSPI and hyper flash devices on both FlexSPI buses it is easy to maintain a large number of such configurations (and users can add their own QSPI drivers if needed) to allow automated programming of them in a factory environment.

It may not be the turn-key solution today but it is envisaged that, when released, it will open up more flexibility (also adding the possibility to include self check/calibration type tasks) for high efficiency production programming.

[Note also that QSPI flash protection - such as to write-protect boot loader sectors - can be used, whereby if it is performed at the moment the existing PC tools don't have the capability to recognise and un-protect this when needed and so can no longer program and delete the HW]

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements

For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key

0 Kudos