Hi ,
I'm using S32K312 . wanted to know the easiest way to detect RAM, FLASH errors.
Can i configure some IPs that will report to me RAM or ROM errors via interrupts or do i have to poll and run some tests during idle time?
Is there any example code available?
SPD a SAF drivers contain example code.
I have already shared a link:
table in the middle, 'SPD License Offering'
Modules related to ECC errors are ERM, EIM, FCCU and memory controllers. I could possibly recommend to see my document related to MPC5744P device
https://www.nxp.com/docs/en/application-note/AN13179.pdf
Although prepared for different devices, the principle is the same and it could help to understand it. The difference will be in core response but related modules has it implemented very similar way.
ECC handling may be included in certain module RTD drivers, for instance FEE driver contains ECC handling.
We are also providing S32 Safety Software Framework (SAF) and Safety Peripheral Drivers (SPD) its part is
Extended MCU Error Manager (eMCEM) – configures FCCU, ERM and provides handlers to faults signaled to FCCU. SPD is free of charge, SAF requires license fees.
So this will be apparently the easiest way.