S32K312-Update the same Block multiple times in a cluster

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

S32K312-Update the same Block multiple times in a cluster

117 Views
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 Kudos
2 Replies

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

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