Calculate length limition of CSEC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Calculate length limition of CSEC

跳至解决方案
962 次查看
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 项奖励
回复
1 解答
949 次查看
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 项奖励
回复
3 回复数
770 次查看
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 项奖励
回复
950 次查看
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 项奖励
回复
943 次查看
Keane
Contributor I

Hi Lukas

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

Best regards,

Keane

0 项奖励
回复