S32K14X CSEC pram data fillling problem

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

S32K14X CSEC pram data fillling problem

Jump to solution
1,069 Views
1113240626
Contributor II

as demo(cesc_keyconfig) say:  

plaintext = 00112233445566778899aabbccddeeff
ciphertext = 69c4e0d86a7b0430d8cdb78070b4c55a

 

why data is  32bit reversed when filling in pram ?

link plaintext  = 0x00112233 0x44556677

ciphertext=0x69c4e0d8 0x6a7b0430.

Do you have any document to explain this ?

Tags (1)
0 Kudos
Reply
1 Solution
916 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@1113240626

You don't need to waste your time on this.

You can check how the API "CSEC_WriteCommandBytes()" fills the PRAM.

Senlent_0-1764211862291.png

 

 

View solution in original post

5 Replies
917 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@1113240626

You don't need to waste your time on this.

You can check how the API "CSEC_WriteCommandBytes()" fills the PRAM.

Senlent_0-1764211862291.png

 

 

973 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@1113240626

Senlent_1-1764050023677.png

 

 

 

 

0 Kudos
Reply
934 Views
1113240626
Contributor II

hello, thanks for your response.

in s32RM_rel14, like the picture below。

Tags (2)
0 Kudos
Reply
1,004 Views
1113240626
Contributor II

Is csec subsystem big endian?

0 Kudos
Reply
1,003 Views
1113240626
Contributor II

I saw PRAM description  that the pram interface is Big Endian in s32kRM_r9, and  pram interface is Little Endian in s32kRM_r14. what happened? The chip‘s design had been changed?or is s32kRM_r9  error?

Tags (2)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2246257%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K14X%20CSEC%20pram%20data%20fillling%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2246257%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eas%20demo(cesc_keyconfig)%20say%3A%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3Eplaintext%20%3D%2000112233445566778899aabbccddeeff%3CBR%20%2F%3Eciphertext%20%3D%2069c4e0d86a7b0430d8cdb78070b4c55a%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ewhy%20data%20is%26nbsp%3B%2032bit%20reversed%20when%20filling%20in%20pram%20%3F%3C%2FP%3E%3CP%3Elink%26nbsp%3Bplaintext%26nbsp%3B%20%3D%200x00112233%200x44556677%3C%2FP%3E%3CP%3Eciphertext%3D0x69c4e0d8%200x6a7b0430.%3C%2FP%3E%3CP%3EDo%20you%20have%20any%20document%20to%20explain%20this%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2246620%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20S32K14X%20CSEC%20pram%20data%20fillling%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2246620%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20saw%20PRAM%20description%26nbsp%3B%20that%20the%20pram%20interface%20is%20Big%20Endian%20in%20s32kRM_r9%2C%20and%26nbsp%3B%26nbsp%3Bpram%20interface%20is%20Little%20Endian%20in%20s32kRM_r14.%20what%20happened%3F%20The%20chip%E2%80%98s%20design%20had%20been%20changed%EF%BC%9For%20is%20s32kRM_r9%26nbsp%3B%20error%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2247998%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K14X%20CSEC%20pram%20data%20fillling%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2247998%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3E1113240626%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_1-1764050023677.png%22%20style%3D%22width%3A%20685px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_1-1764050023677.png%22%20style%3D%22width%3A%20685px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_1-1764050023677.png%22%20style%3D%22width%3A%20685px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_1-1764050023677.png%22%20style%3D%22width%3A%20685px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367082iDECA40B691517E29%2Fimage-dimensions%2F685x320%3Fv%3Dv2%22%20width%3D%22685%22%20height%3D%22320%22%20role%3D%22button%22%20title%3D%22Senlent_1-1764050023677.png%22%20alt%3D%22Senlent_1-1764050023677.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2249943%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K14X%20CSEC%20pram%20data%20fillling%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249943%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3E1113240626%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EYou%20don't%20need%20to%20waste%20your%20time%20on%20this.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EYou%20can%20check%20how%20the%20API%20%22CSEC_WriteCommandBytes()%22%20fills%20the%20PRAM.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1764211862291.png%22%20style%3D%22width%3A%20525px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1764211862291.png%22%20style%3D%22width%3A%20525px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1764211862291.png%22%20style%3D%22width%3A%20525px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367472i04E46A6868EDD1CF%2Fimage-dimensions%2F525x572%3Fv%3Dv2%22%20width%3D%22525%22%20height%3D%22572%22%20role%3D%22button%22%20title%3D%22Senlent_0-1764211862291.png%22%20alt%3D%22Senlent_0-1764211862291.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2249231%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K14X%20CSEC%20pram%20data%20fillling%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249231%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehello%2C%20thanks%20for%20your%26nbsp%3Bresponse.%3C%2FP%3E%3CP%3Ein%20s32RM_rel14%2C%20like%26nbsp%3Bthe%20picture%20below%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E