S32K144EVB Secure Boot

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

S32K144EVB Secure Boot

2,165 次查看
bix010
Contributor III

Hi,

I'm trying out the secure boot feature on the S32K144EVB board. I'm being careful, as I don't want to brick the board. I'm seeing two different options for boot size:

1. In the sample code provided in AN5401SW, example #4 shows how to configure secure boot manually.  It sets the BOOT_SIZE to 128*1024*8.

2. In the SDK code for CSEC module provided by Processor Expert, the comments indicate the bootSize is the number of blocks of 128-bit data to check on boot. Maximum size is 512KB.

Based on (2), would the maximum bootSize be equals to (512KB / 128bit) = 4096?

But in (1), the BOOT_SIZE is defined as 128*1024*8 = 1,048,576.

What is the correct way to calculate the boot size?

Thanks!

0 项奖励
回复
2 回复数

1,769 次查看
bix010
Contributor III

Hi,

I tried and the BOOT_SIZE is counted in number of bits, rounded up to the nearest 128-bits.  i.e. Option (1) in my original post.

0 项奖励
回复

1,769 次查看
fuzeng
NXP Employee
NXP Employee

the 512K is a read parittion, cmac can't caculate over a partition.

caculate:

      16byte=128bits/8bits

      512*1024byte/16byte=32768 blocks.(max)

0 项奖励
回复