RT1021: Problems accessing flash using the AHB bus feature.

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

RT1021: Problems accessing flash using the AHB bus feature.

589 Views
rshipman
Contributor V

Hi,

I am having some trouble getting the AHB bus flash read/write feature to work reliably.

Question 1:

In the NXP posting:

https://community.nxp.com/t5/i-MX-RT/Can-we-use-a-XIP-flash-and-a-data-flash-at-the-same-FlexSPI/m-p...

The following sentence is in the reply marked as the solution:

"Yes, you can use A1 to XIP while use B1 to save data. XIP use AHB bus. Program use IPS bus."

Does that mean you can only program flash using the IPS bus and therefore cannot use the AHB bus?

In other words, for the RT1021, is writing to flash not available over the AHB bus and you have to send the page program commands via FlexSPI directly? Note that I have erased the flash before trying this.

 

Question 2:

I have noticed that reading from flash using the AHB Bus seems to only work reliably if I set it up with an SPI read command. If I use a QSPI read command it reads back incorrectly. I can confirm the data is correct using the FlexSPI api directly. This is with both caches disabled.

Is the AHB feature only expected to work with SPI commands not QSPI ones?

 

Many thanks for your help.

Kind regards,

Ronnie

 

Labels (1)
0 Kudos
Reply
1 Reply

581 Views
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) Is writing to flash not available over the AHB bus and you have to send the page program commands via FlexSPI directly? Note that I have erased the flash before trying this.
-- Yes, I'd like to suggest the customer use the IPC commands to read or write the QSPI flash that is used for the data storage function.
2) Is the AHB feature only expected to work with SPI commands not QSPI ones?
-- No, I don't think so.
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
Reply