Hi Dan,
I was trying to reply to your question but NXP website has gone maintain for few days
Did the HSE FW version you are using support for config monotomic counter?
from the function
GetAttr( HSE_FW_VERSION_ATTR_ID, sizeof(hseAttrFwVersion_t), &pHseFwVersion );
[Cpt_M] pHseFwVersion.socTypeId 13
[Cpt_M] pHseFwVersion.fwTypeId 0
[Cpt_M] pHseFwVersion.majorVersion 2
[Cpt_M] pHseFwVersion.minorVersion 6
[Cpt_M] pHseFwVersion.patchVersion 0
HSE_DEMOAPP_S32K3XX_0_2_6_0 have example about monotonic operation. so we are assuming fw does support it.
Did you pass into the correct parameters when call HSE functions?
Yes , it's stability issue, it works sometimes but it stuck in while loop occassionally.
from the installer folder nxp > HSE_DEMOAPP_S32K3XX_0_2_6_0 > demo_security_installer_scripts, we found some scripts relate to the monotonic functions that has delay time of 4s to 5s. we had experience this stuck in while loop issue while we doing stress testing on monotonic counter with intervals around 4s, Would you share with us about why do you set 4s-5s as delay time in the example scripts?
following are from monotonic_counter.cmm file
SUB_FILL_DATA:
DIALOG.END
BREAK
v monotonic_cnt_select = MONOTONIC_CNT_INCREMENT
v gProgramAttributes = MONOTONIC_COUNTER
v gRunExampleTest = 1
GO
wait 4s
break
v allTestExecuted = 1
v monotonic_cnt_select = MONOTONIC_CNT_NOT_SELECTED
v gProgramAttributes = NO_ATTRIBUTE_PROGRAMMED v gRunExampleTest = 0
v MonotonicCnt IncrementValue = 0
GO
do monotonic_counter.cmm