RT1021: Writing to flash when running XIP from the same flash.

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

RT1021: Writing to flash when running XIP from the same flash.

759 Views
rshipman
Contributor V

Hi,

Is there a way to write/program the same flash that you are running XIP from?

Kind regards,

Ronnie

 

Labels (1)
Tags (4)
0 Kudos
2 Replies

433 Views
Selrac_13
Contributor I

Hi @jeremyzhou,

I am very interested on this topic.

When you say:

on the condition that relocating the FlexSPI driver in the RAM

How that can be achieved with details? I have taken a look to the example you mention: flexspi_nor_polling_transfer and I see

  • FlexSPI driver is moved to RAM on the Linker (linkscripts folder)
  • Use another Flash driver that the most common one:

Selrac_13_0-1690927186114.png

But I don't see any Flash partitions or anything like that.

My current project is using this other flash driver:

Selrac_13_1-1690927265895.png

Having the MIMXRT1020-EVK_IS25LP064.cfx is a requirement?

With more details what I want to achieve is to use the 8 MB SPI Flash for different purposes:

  • 3 MB for the program itself
  • Other 5 MB as a Flash storage to use in RAW to read/write data

Which steps I need to follow?

Many thanks,

Carles

0 Kudos

754 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 there a way to write/program the same flash that you are running XIP from?
-- Yes, it's possible on the condition that relocating the FlexSPI driver in the RAM and you can refer to the flexspi_nor_polling_transfer demo in the SDK library to do it.
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