RT1050-EVKB use onboard QSPI flash for program code AND storage

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

RT1050-EVKB use onboard QSPI flash for program code AND storage

跳至解决方案
767 次查看
_bjs
Contributor III

Hello I have working external QSPI custom hardware board.
This QSPI is same as the RT1050-EVKB external flash : IS25WP064AJBLE.
The program works and QSPI works.

Now i want to store some variables in memory for persistent storage. 
How do i do this?

My idea is the following, the flash size is for example say 0x4000000 (is hyper flash size, but as example!), i use the range  0x4000000-0x1000 (0x3FFF000) for program memory and the 0x1000 sector for storage.

How can this be done? For example can i use it from the MCU settings and assume it is read/write-able?

_bjs_0-1658912390206.png

 

 

volatile uint32_t addr0 = 0x63FFF000;
char *a = (char*) addr0;
*a = 20;

 

I tried this, and i get SEGFAULT. (This would be Xecute In Place XIP, or 'memory mapped'?)


I have seen the example code FREERTOS Hello Flash Operation. 
This is using a function to 'Init nor flash'. However How can i Init nor flash, when i am already running QSPI, Maybe i can stop the Init? but i need a 'EXAMPLE_FLEXSPI' base argument, can i use the one from the Program code, which is hidden in DCD i think? how do i go about this?

I dont want RWW, just simple 1 memory QSPI, slow is fine, use the same Base argument from the XIP, how do i do this, i cannot find the XIP base FLEXSPI.

When i try any of the example flash operations i get the "kStatus_FLEXSPI_IpCommandSequenceError" error.

0 项奖励
1 解答
756 次查看
_bjs
Contributor III

I think problem is solved by following:
https://community.nxp.com/t5/i-MX-RT/RT1050-QSPI-Flash-Limitations/m-p/745409

Still testing and trying to implement in my main project, the example project given by community member venugopal_v is working correct!
Project : BEL2_flexspi_nor_polling_transfer

在原帖中查看解决方案

2 回复数
752 次查看
jeremyzhou
NXP Employee
NXP Employee

Great!

0 项奖励
757 次查看
_bjs
Contributor III

I think problem is solved by following:
https://community.nxp.com/t5/i-MX-RT/RT1050-QSPI-Flash-Limitations/m-p/745409

Still testing and trying to implement in my main project, the example project given by community member venugopal_v is working correct!
Project : BEL2_flexspi_nor_polling_transfer