S32K3 FLS Disable Cache

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

S32K3 FLS Disable Cache

937 次查看
LHY
Contributor I

Dear NXP:

I saw the below statement in the FLS driver:
Synchronize the memory by invalidating the cache after each flash hardware operation.
The FLS driver needs to maintain the memory coherency using three methods:
1. Disable data cache, or
2. Configure the flash region upon which the driver operates, as non-cacheable, or
3. Enable the FlsSynchronizeCache feature.

Depending on the application configuration, one option may be more beneficial.

When I want to Disable the FLS data cache, can I add the following macro definition to the FEE.c file,

LHY_0-1714378310488.png

As for why I Disable Cache, when I execute data flash and init Fls functions during normal operation of the program, a small probability of HardFault will occur, as shown in the following figure.

LHY_1-1714378604022.png

S32K3 

0 项奖励
回复
0 回复数