Calculate length limition of CSEC

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

Calculate length limition of CSEC

Jump to solution
911 Views
Keane
Contributor I

Hi everyone

I'm working on S32K146 with S32DS 3.4 now, but I found some issues about CSEC.

Is there any length limitation of CMAC calculation by Csec_GenerateMacAddrMode?

Can the calculation length be beyond 0x60000?

Length 0x5FFFF, it can work.

Keane_0-1683191397854.png

Length 0x60000, it can work.

Keane_1-1683191430542.png

Length 0x60001, it can't work.

Keane_2-1683191451305.png

But it can work by Csec_GenerateMac.

Keane_3-1683191512751.png

I will appreciate it if someone can help me to solve those problems.
Best regards.

0 Kudos
Reply
1 Solution
898 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Keane 

yes, there is a limitation:

lukaszadrapa_0-1683220374446.png

 In case of S32K146, there are two 512KB read partitions in program flash:

lukaszadrapa_1-1683220388332.png

So, you just crossed the partition.

Regards,

Lukas

 

View solution in original post

0 Kudos
Reply
3 Replies
719 Views
ZEROOO
Contributor IV

Hi @Keane 

    When you use the CSEC_DRV_GenerateMACAddrMode function, can you process data of 0x60000 bytes in one call.Has the specific maximum data length been measured?

 

Best wishes!

0 Kudos
Reply
899 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Keane 

yes, there is a limitation:

lukaszadrapa_0-1683220374446.png

 In case of S32K146, there are two 512KB read partitions in program flash:

lukaszadrapa_1-1683220388332.png

So, you just crossed the partition.

Regards,

Lukas

 

0 Kudos
Reply
892 Views
Keane
Contributor I

Hi Lukas

Thanks for your reply . It really helps me a lot.

Best regards,

Keane

0 Kudos
Reply