Operation NorFlash function is abnormal

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

Operation NorFlash function is abnormal

920 次查看
jimhuang2
Contributor III

Hello,

The project run NorFlash, but operate NorFlash function in the SRAM to execute.

After I used AHB command to read Norflash, go to operate flash function, and it happen an abnormal action occurs.

Operate NorFlash :

2019-09-16_143501.bmp

S1. Write Flash (IP Command)

2019-09-16_143510.bmp

S2. Read Flash (AHB Command)

S3. Erase Flash (IP Command), Used Erase Flash, Found at  0x600C8000~0x600C801F can't erase.

2019-09-16_143518.bmp

I suspect it may be a cache problem, currently the Project enable D-Cache and I-Cache, Will it be read Cache and Flash out of sync relationship?

Best Regards

Jim

标签 (1)
0 项奖励
回复
1 回复

835 次查看
igorpadykov
NXP Employee
NXP Employee

Hi JingHuan

eim nor examples with caches one can find in linux (EIM) NOR driver described in

sect.3.2 EIM NOR attached Linux Manual

imx-weim.c\bus\drivers - linux-imx - i.MX Linux kernel 

Example without caches one can find in baremetal sdk

rt-thread/bsp/imx6sx/iMX6_Platform_SDK/sdk/drivers/eim at master · RT-Thread/rt-thread · GitHub 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复