using CSEC_DRV_GenerateMACAddrMode calculate CMAC error for DFLASH data in S32K148

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

using CSEC_DRV_GenerateMACAddrMode calculate CMAC error for DFLASH data in S32K148

ソリューションへジャンプ
10,234件の閲覧回数
yangyong1
Contributor I

Dear,

I want to using CSEC_DRV_GenerateMACAddrMode calculate CMAC for DFLASH data, but the return value is STATUS_ERROR. The code is CSEC_DRV_GenerateMACAddrMode(CSEC_KEY1, (const uint8_t *)0x10000000, 0x30d80, flash_ext_cmac_cal);

but I using the same KEY to calclate the PFLASH data is OK, the function can return STATUS_SUCCESS.

How to using the CSEC calculate CMAC for DFLASH data?

タグ(1)
0 件の賞賛
返信
1 解決策
10,208件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

CSEC_DRV_GenerateMACAddrMode uses command CMD_GENERATE_MAC (pointer method) where the reference manual says:

lukaszadrapa_0-1663678309596.png

So, it cannot be used for DFlash. The only option is to use CSEC_DRV_GenerateMAC which uses normal CMD_GENERATE_MAC command.

Regards,

Lukas

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
10,209件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

CSEC_DRV_GenerateMACAddrMode uses command CMD_GENERATE_MAC (pointer method) where the reference manual says:

lukaszadrapa_0-1663678309596.png

So, it cannot be used for DFlash. The only option is to use CSEC_DRV_GenerateMAC which uses normal CMD_GENERATE_MAC command.

Regards,

Lukas

0 件の賞賛
返信
10,184件の閲覧回数
yangyong1
Contributor I
thank you very much.
0 件の賞賛
返信
10,233件の閲覧回数
yangyong1
Contributor I
the MCU is S32K148
0 件の賞賛
返信