Operation NorFlash function is abnormal

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Operation NorFlash function is abnormal

674 Views
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

Labels (1)
0 Kudos
1 Reply

589 Views
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 Kudos