How to set AHB with FLEXSPI in i.MX RT1015 for NOR flash page program purpose ?

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

How to set AHB with FLEXSPI in i.MX RT1015 for NOR flash page program purpose ?

852 Views
kamilm
Contributor II

Hi!

I have problem with page program NOR flash memory using FLEX SPI with AHB.

I want store data using direct write to mapped address:

for(int i = 0; i < 0x100; i++)
{
   *(uint8_t *)(FlexSPI_AMBA_BASE + i) = i;
}

However, Chip Select interrupts programming sequence. 

the manual says that: "For Flash reading/programming triggered by AHB command: Internal async FIFO for flash reading/programming should never be full/empty."

How to check TX FIFO status correctly ? 

Regards,

Kamil 

0 Kudos
1 Reply

745 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Kamil ,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) How to check TX FIFO status correctly?
-- Actually, only two interrupts can indicate the status of the async FIFO.

pastedImage_1.png
I was wondering if you can introduce hardware design about the external QSPI,
it close relates to AHB read and write operation.

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