Problem to write data on external Flash using RT1160

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

Problem to write data on external Flash using RT1160

860 次查看
Ramon1
Contributor I

Hello Everyone,

I'm attempting to utilize the Flash IS25WP128-JBLE memory on the EVK RT1160 for booting the main code and also to store some config data.

I've tried to use the SDK Example evkmimxrt1160_littlefs_shell_cm7, but it seems this example uses RAM memory for code execution and Flash memory for data storage, which is not my case.

I aim to utilize the same flash memory for both booting the code and storing the config data. I've already partitioned the Flash memory with a 4KB allocation for storage, but I'm encountering difficulties in writing to it. I'm trying to use the mFlash driver, but the Flexspi initialization inside this driver returns Hard Fault.

How can I do this?

0 项奖励
回复
1 回复

800 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

You can find some issues when attempting to write and read the memory at the same time, that’s why we execute from RAM so we can access the flash memory.
When accessing the flash to store data you need to make sure that it is not XIP, there are some methods to avoid this like: Implement RWW on i.MX RT Series (nxp.com)|
However, this does not guarantee that it will run without issues.

Best regards,
Omar

0 项奖励
回复