S32K312-Update the same Block multiple times in a cluster

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

S32K312-Update the same Block multiple times in a cluster

167 次查看
Simon-Liu
Contributor V

Hello

When I read the RTD_FEE_UM document, I know that the header data of all blocks, including the address of the stored data, is stored in front of each Cluster.
So, if the same Block data is written for the second time, to what address is the data updated? How is the address data in the Block updated?

 

BestRegards

Simon

0 项奖励
回复
2 回复数

132 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Simon-Liu 
when you write the same block data second time, new records are created in the flash. Old ones are kept/not updated (until next swap) but only the latest records are valid. Addresses of block headers grow up while addresses of data descend down:

lukaszadrapa_0-1717743141974.png

 

To see the behavior, you can use example like this:
c:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32K3\RTD\Fee_TS_T40D34M40I0R0\examples\S32DS\S32K3XX\Fee_Example_S32K344\
Just write the same block more times and watch the flash block to see how it works.

Regards,
Lukas

129 次查看
Simon-Liu
Contributor V

Hi @lukaszadrapa 

Thank you for your answer.

I still have some questions about the FEE and MemAcc components:

1.How is the maximum allowed value for each block size calculated?

2.SubAddressAreas in each AddressArea cannot reference the same physical sector, but SubAddressAreas in different AddressAreas can reference the same physical sector. Why is this? Will this not cause conflicts in storing data?

 

BestRegards

Simon

0 项奖励
回复