S32K146 Csec sdk examples

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

S32K146 Csec sdk examples

跳至解决方案
1,922 次查看
Kris_chao
Contributor III

请教一下,在Csec模块给的Example4_secure_boot_add_BOOT_MAC_manual_SDK3_0_0例程里。main.c的第133行,Res = CSEC_DRV_BootDefine(BOOTSIZE_BYTE*8, CSEC_BOOT_SERIAL);

就是这个函数第一个参数bootsize的单位是啥?看上去好像是bit,但说明里写的是-1. parameter: Number of blocks of 128-bit data to check on boot. Maximum size is 512kBytes.  看上去单位又是word。

另外在该例程main.c的第143行:uint32_t BootSizeBit=BOOTSIZE_BYTE*8; 

这里的BootSizeBit赋的值和上面CSEC_DRV_BootDefine里的第一个参数是一致的,所以说上面CSEC_DRV_BootDefine第一个参数bootsize的单位也是bit?但跟说明就冲突了,望解答一下。

 

0 项奖励
回复
1 解答
1,907 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Kris_chao

是的,这个地方SDK的描述确实是错误的,这个单位确实是bit。

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,908 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Kris_chao

是的,这个地方SDK的描述确实是错误的,这个单位确实是bit。

0 项奖励
回复
1,670 次查看
Ryan5
Contributor I

1.Example1_Configure_part_and_Load_keys_SDK3_0_0  2.Example2_Update_user_keys_sdk_SDK3_0_0 3. Example3_Basic_operations_SDK3_0_0 4. Example4_secure_boot_add_BOOT_MAC_manual_SDK3_0_0 5. Example5_Resetting_flash_to_the_factory_state_SDK3_0_0
在哪里可以找到这些示例代码?

0 项奖励
回复
331 次查看
Jason88619
Contributor I

请问你找到这些示例代码了吗?能否分享给我?

Did you find these sample codes? Could you please share them with me?

0 项奖励
回复