S32K3 monotonic counters

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

S32K3 monotonic counters

Jump to solution
3,344 Views
JiayuZhou
Contributor II

In S32K3 chip, if I set RPBitSize to 64, how much can be wirtten for this channel ?1.png

#S32K3 #HSE

0 Kudos
Reply
1 Solution
3,114 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

It's the total number of updates. It doesn't matter how many counters are there.

View solution in original post

6 Replies
3,314 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @JiayuZhou 

this is not clear in the documentation, so I'm checking it with responsible team. I will let you known once I get the feedback. Please notice that it make take some time.

Regards,

Lukas

0 Kudos
Reply
3,259 Views
JiayuZhou
Contributor II
Hi, lukaszadrapa,
Has there been any progress on this question?
0 Kudos
Reply
3,180 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Here's the feedback:

***

Basically configuring the RP to 64 bits will take the entire bitifield for that specific monotonic counter making so that everytime that the monotonic counter is updated it will be stored in memory and will be retained, after 512 updates on this case an erase operation will be triggered basically resetting the value of the monotonic counters. if we consider that there are 100,000 erase operations available in the Data Flash and you have the RP configured to 64 then you will be able to have around 512x100000 = 51,200,000 updates on the Monotonic Counter.

***

Hope it helps.

Regards,

Lukas

0 Kudos
Reply
3,159 Views
JiayuZhou
Contributor II
thank you for your reply.

while configuring the RP to 64 bits, every monotonic counter index can be updated 51,200,000, not all monotonic counter indexes can only be updated 51,200,000 in total, right? [in S32K314, index (from 0 to HSE_NUM_OF_MONOTONIC_COUNTERS – 1)]
0 Kudos
Reply
3,115 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

It's the total number of updates. It doesn't matter how many counters are there.

3,244 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

The question already reached the right team, I got acknowledge from them. But still waiting. Depending on their workload, it can take even a few weeks in worst case. I will let you know once I receive their feedback.

Regards,

Lukas

0 Kudos
Reply