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 :
S1. Write Flash (IP Command)
S2. Read Flash (AHB Command)
S3. Erase Flash (IP Command), Used Erase Flash, Found at 0x600C8000~0x600C801F can't erase.
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
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!
-----------------------------------------------------------------------------------------------------------------------