Accessing internal flash and external flash at the same time in imxrt1064

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Accessing internal flash and external flash at the same time in imxrt1064

跳至解决方案
2,061 次查看
karthik1
Contributor I

Hi sir, 

1)Is it possible to read the external NOR flash memory(using flexspi nor API) and write it to internal flash(using ROM API)  since  both internal flash and external NOR flash uses the same flexspi2 interface?

2)Is it possible flash remapping from internal flash address(0x7000000) to external NOR flash address ( 0x6000000) using flash remapping method in imxrt1064?

3) Is it the internal flash and external NOR flash are in same flexSPI2 interface?

4) How to copy data from external NOR flash to internal flash at the same time because both internal flash and external flash uses same flexspi2 interface, Is it possible ?

thanks and regards 

Karthik N E

标签 (1)
0 项奖励
回复
1 解答
1,930 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi karthik NE ,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1)Is it possible to read the external NOR flash memory(using flexspi nor API) and write it to internal flash(using ROM API)  since both internal flash and external NOR flash uses the same flexspi2 interface?
-- No.
2)Is it possible flash remapping from internal flash address(0x7000000) to external NOR flash address ( 0x6000000) using flash remapping method in imxrt1064?
-- No.
3) Is it the internal flash and external NOR flash that are in the same flexSPI2 interface?
-- No.
4) How to copy data from external NOR flash to internal flash at the same time because both internal flash and external flash use the same flexspi2 interface, Is it possible?
-- The external Nor flash should connect the FlexSPI1, as the FlexSPI2 pins are invisible for the developer actually.
I'd like to suggest you access the external Nor flash by utilizing the fsl_flexspi driver versus to the ROM API, as the ROM API is exclusive to internal flash. In addition, it needs a pool area in the RAM area to store the data temporarily for transfer to the destinated flash.

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 项奖励
回复
5 回复数
1,931 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi karthik NE ,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1)Is it possible to read the external NOR flash memory(using flexspi nor API) and write it to internal flash(using ROM API)  since both internal flash and external NOR flash uses the same flexspi2 interface?
-- No.
2)Is it possible flash remapping from internal flash address(0x7000000) to external NOR flash address ( 0x6000000) using flash remapping method in imxrt1064?
-- No.
3) Is it the internal flash and external NOR flash that are in the same flexSPI2 interface?
-- No.
4) How to copy data from external NOR flash to internal flash at the same time because both internal flash and external flash use the same flexspi2 interface, Is it possible?
-- The external Nor flash should connect the FlexSPI1, as the FlexSPI2 pins are invisible for the developer actually.
I'd like to suggest you access the external Nor flash by utilizing the fsl_flexspi driver versus to the ROM API, as the ROM API is exclusive to internal flash. In addition, it needs a pool area in the RAM area to store the data temporarily for transfer to the destinated flash.

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 项奖励
回复
1,930 次查看
karthik1
Contributor I

thank you jeremyzhou for your reply

4).How to copy data from external NOR flash to internal flash at the same time because both internal flash and external flash use the same flexspi2 interface, Is it possible?
-- The external Nor flash should connect the FlexSPI1, as the FlexSPI2 pins are invisible for the developer actually.
I'd like to suggest you access the external Nor flash by utilizing the fsl_flexspi driver versus to the ROM API, as the ROM API is exclusive to internal flash. In addition, it needs a pool area in the RAM area to store the data temporarily for transfer to the destinated flash. 

1)what is the use of being to store in RAM for temporary data

2)Can you elaborate the the procedure, to create a pool area in the RAM area to store the data temporarily for transfer to the destined flash.  any demo examples are there in SDK

0 项奖励
回复
1,930 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi karthik NE ,

Thanks for your reply.
1)what is the use of being to store in RAM for temporary data?
-- It seems like a buffer area, as the external and internal NOR flash can't access each other directly.
2) Can you elaborate on the procedure, to create a pool area in the RAM area to store the data temporarily for transfer to the destined flash?  any demo examples are there in SDK?
-- For instance, calling malloc or other similar functions to request an array area in the SDRAM, then use the fsl_flexspi driver to read the data from the external NOR flash to the array, after completing, indicate a signal to ROM API to read the data to internal flash, and vice versa.
There's no similar demo project that demonstrates the above procedure in the SDK library actually, however, there's flexspi demo in the SDK library, it demonstrates send data and operate the external Nor flash connected with FLEXSPI, you can add customize feature on the flexspi demo to implement the above application.

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 项奖励
回复
1,930 次查看
karthik1
Contributor I

Hi jeremyzhou,

thank you for your response,

1) How to address(relocate) the entry point address for application(running in address space 0x70080000) to run, or i can say how to change entry point address using XIP boot header file to start run the application from(0x70080000 location)

2) How to load two applications into internal flash  (my own custom bootloader which as XIP header and another application has only application code but not the XIP header included) so that my custom bootloader can set the entry point of the application code to start run whenever its is necessary )

I need help 

Thanks and regards 

Karthik  N E

0 项奖励
回复
1,930 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi karthik NE ,

Thanks for your reply.
Please refer to the AN12255 How to Use Flash Remapping Function which presents how to use the flash remapping function.

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 项奖励
回复