Operation NorFlash function is abnormal

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Operation NorFlash function is abnormal

694件の閲覧回数
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 返信

609件の閲覧回数
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 件の賞賛