s32k148 csec secure boot define

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

s32k148 csec secure boot define

779 Views
wang_q4
Contributor I

Dear all,

I want to enable secure boot,but i have some questions about boot define:

1.How to set the bootsize of CSEC_DRV_BootDefine function;

2.When i update the CSEC_BOOT_MAC_KEY, how to set the CSEC_BOOT_MAC_KEY's attribute;

3.When i update the CSEC_BOOT_MAC, how to set the CSEC_BOOT_MAC's attribute.

0 Kudos
2 Replies

768 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@wang_q4

      我给你邮箱发一个这个模块的手册介绍吧,是我们一个AE的同事写的,如果你没看过的话你先看看。

     1. CSEC_DRV_BootDefine是你自己分配给BOOT的大小,起始地址从0开始计算。第二第三个问题是同一个问题,这个是密钥的属性设置,有些位设了可能会恢复不了,所有要小心点。

Senlent_0-1629375488320.png

BR!

Jim.

 

0 Kudos

514 Views
1260784871
Contributor II

你好,我使用了如下的代码,然后我的板子(S32K116 开发板) 就一直处在复位状态

请问:这是什么原因,我怎样恢复它

int main(void)
{
UartInit();
printf("start\r\n");

/* Initialize CSEc driver */
CSEC_DRV_Init(&csec1_State);


CSEC_DRV_BootDefine(1, CSEC_BOOT_STRICT);

while (1);
}

0 Kudos