EEPROM Emulation on MPC5xx/S32K3

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

EEPROM Emulation on MPC5xx/S32K3

跳至解决方案
3,096 次查看
wuxianlong
Senior Contributor I

Hi,

I have read AN4868(EEPROM Emulation with Qorivva MPC55xx, MPC56xx, and MPC57xx Microcontrollers). The principle of S32K3xx is the same. I'm meeting a little confused and hoping for help.

1. If i want to update the first data of record1,and do i need to rewrite the whole record1 ?
2. Is Block similar to record in FEE of S32K3? 企业微信截图_16617377609223.png

标记 (1)
0 项奖励
回复
1 解答
3,072 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

1) Yes, the whole record is needed to be written.

2) Yes, you are correct. Now it is called somehow differently. Instead of block FEE driver uses term 'Cluster'. Instead of record FEE driver it use term 'Block'.

I am sorry for confusions.

在原帖中查看解决方案

3 回复数
3,083 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

1) Records are not being rewritten. It is just the principle of EEPROM emulation that records are only sequentially added (i.e. updated) and so the data are spread over the whole flash range what's minimize a need of erase operation (i.e. prolong device's flash lifetime.

2) Blocks and records are two different terms:
Record is basically entry with a data that is written to active block.
Block is smallest unit on which EEPROM emulation operation may perform erase operation. You may understand it well from section (3.6 Swapping blocks) of mentioned AN4868.

0 项奖励
回复
3,077 次查看
wuxianlong
Senior Contributor I

Hi,@davidtosenovjan,sorry for late response

I get your message. Maybe there's something wrong with my expression.

1. If i want to update the first data of record1,and do i need to rewrite the whole record1 ?

What I want to know is whether record is the smallest operation unit. If I only change the data in the red box,and other data unchanged, I also have to update the whole record1?

2. Is Block similar to record in FEE of S32K3?
I see  an API in S32K344_FEE example , Block is like the smallest unit. 
2.png
Regards,

Wu

0 项奖励
回复
3,073 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

1) Yes, the whole record is needed to be written.

2) Yes, you are correct. Now it is called somehow differently. Instead of block FEE driver uses term 'Cluster'. Instead of record FEE driver it use term 'Block'.

I am sorry for confusions.