What is the CSEc key, BOOT_MAC's debug protect attribute use for?

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

What is the CSEc key, BOOT_MAC's debug protect attribute use for?

跳至解决方案
782 次查看
yaojianhang
Contributor II

HI,@lukaszadrapa

As the question head saying, I don't know what is the CSEc key, BOOT_MAC's debug protect attribute use for. I have tried to set this attribute, and found secure boot will also be succeed with debug attatched, would you give me some explains? thank you very much!

BR,

yaojianhang.

 

标记 (2)
0 项奖励
回复
1 解答
747 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

OK, in case of BOOT_MAC, I can see that it really doesn't work as expected. Thanks for pointing this out, I will report it. The workaround is simple here - set this attribute for BOOT_MAC_KEY instead of BOOT_MAC. It is sufficient if at least one of them is set. The effect will be the same.

Regards,

Lukas

在原帖中查看解决方案

3 回复数
762 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @yaojianhang 

not sure how you tested this but it works as expected on my side...

This is a state when I turn on the board and connect a debugger without reset (hot attach):

lukaszadrapa_0-1678957105315.png

If debugger is connected and if I reset the board via debugger:

lukaszadrapa_1-1678957136284.png

So, I can see no problem here.

How did you set the attribute? I used AN5401 for my test and I used:

calculate_M1_to_M5(M1, M2, M3, M4, M5, MASTER_ECU_KEY_VALUE, BOOT_MAC_KEY_VALUE, MASTER_ECU_KEY, BOOT_MAC_KEY, 1, 0b001000);

Regards,

Lukas

 

0 项奖励
回复
759 次查看
yaojianhang
Contributor II
HI, @lukaszadrapa

I teset BOOT_MAC's debug protect attribute not BOOT_MAC_KEY.'s, thanks for your reply!
0 项奖励
回复
748 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

OK, in case of BOOT_MAC, I can see that it really doesn't work as expected. Thanks for pointing this out, I will report it. The workaround is simple here - set this attribute for BOOT_MAC_KEY instead of BOOT_MAC. It is sufficient if at least one of them is set. The effect will be the same.

Regards,

Lukas