S32K344 Lock-step kernel

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

S32K344 Lock-step kernel

Jump to solution
784 Views
xuan
Contributor I

HI,

The S32K344 can be used with single-core, multi-core, or Cortex-M7 lock-step cores.
I have learned that the highest level of ASIL B/D compliance can be achieved using lock-step nuclei.
What do I need to do to be able to use the lockstep core ability

Look forward to reply

0 Kudos
Reply
1 Solution
759 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

You need to simply switch the device into lock step mode via DCM records.

petervlna_0-1723455191537.png

In S32K3xx_DCF_clent excel sheet attached to the reference manual you can see the

petervlna_1-1723455288951.png

All you need to do is to program DCF client UTEST_MISC to UTEST memory with bit LOCKSTEP_EN set to 1.

For details please refer to reference manual : 21.3 UTest NVM sector

You will do the write to DCF user space area of UTEST:

petervlna_2-1723455493201.png

 

Best regards,
Peter

 

 

View solution in original post

0 Kudos
Reply
7 Replies
760 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

You need to simply switch the device into lock step mode via DCM records.

petervlna_0-1723455191537.png

In S32K3xx_DCF_clent excel sheet attached to the reference manual you can see the

petervlna_1-1723455288951.png

All you need to do is to program DCF client UTEST_MISC to UTEST memory with bit LOCKSTEP_EN set to 1.

For details please refer to reference manual : 21.3 UTest NVM sector

You will do the write to DCF user space area of UTEST:

petervlna_2-1723455493201.png

 

Best regards,
Peter

 

 

0 Kudos
Reply
757 Views
xuan
Contributor I

Thank you very much for your reply,

Forgive me for not understanding your reply

Do you have a sample program for my reference?

0 Kudos
Reply
727 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

An example code using C40 IP driver to write in UTEST memory, please find it in the attachment.

It writes 8 bytes with 0xAA in a free location after 0x1B001B00 address.

So change the code accordingly to write lockstep_en in UTEST_Misc on first free location in DCF user space.

petervlna_0-1723529555551.png

 

Please be sure MPU is not protecting UTEST memory in your code.

Best regards,

Peter

 

0 Kudos
Reply
713 Views
xuan
Contributor I

HI,

Thank you very much,

Can you share more information about S32K344 lockstep?
I want to know more about the function of S32K344 lockstep

Looking forward to your reply

0 Kudos
Reply
697 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

All information are available in reference manual.

There is basically nothing to know as it is HW feature.

You can learn more for example from this article:

petervlna_0-1723618347094.png

petervlna_1-1723618369499.png

Best regards,
Peter

 

0 Kudos
Reply
671 Views
xuan
Contributor I

HI,

Thank you very much for your reply

I see that the lock core of the S32K344 is enabled.
As far as I know, both cores run the same program to keep them safe after the lockstep core is enabled.
I need to verify. What do I need to do

0 Kudos
Reply
562 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I need to verify. What do I need to do

I do not understand. What do you need to verify? It is HW feature and once the Lockstep is enabled is in active all the time.

If there is and issue in redundancy the FCCU will report fault.

There is nothing you can verify. No user access to checker core is possible. there is just no interface.

best regards,

Peter

0 Kudos
Reply