Can't get past SDC challenge/response using Codewarrior?

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

Can't get past SDC challenge/response using Codewarrior?

1,626 次查看
ddadson
Contributor I

Hi,

We're making use the trusted architecture on a P1010 based platform. However, we have found we can only successfully pass the SDC challenge-response if we leave the SFP_DRVR registers unprogrammed (i.e. all zeroes). If we program it with a (suitably hamming-bit encoded value), we instead get a "secure debug violation" reported by Codewarrior (v10.5.0) when we enter the programmed value.


We have set these fuses:
SFP_DPR = 0x00000001 (Conditionally closed, without notification)
SFP_DESSR  = 0x00000000
SFP_DRVR[0] = 0x04000800
SFP_DRVR[1] = 0x04000800

We have checked the DRVR value vst gen_drv:
---
$./gen_drv_drbg B 0400080004000800

DRV[63:0] after Hamming Code is:
0400080004000800
 NAME    |     BITS     |    VALUE  
_________|______________|____________
DRV 0    |    31 - 0    | 04000800
DRV 1    |    63 - 32   | 04000800
---

Is there anything we might have missed when setting fuses, or some configuration for Codewarrior that might be incorrect?


Thanks,
David

标签 (1)
标记 (2)
0 项奖励
回复
2 回复数

1,208 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello David Dadson,

Please refer to the section "3.5. Programming Debug Challenge/Response Value Register
(DCVR/DRVR)" and "4. Secure debugging using CodeWarrior" in this document Secure Boot/Debug Configuration for LS1 .


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,208 次查看
ddadson
Contributor I

Hi Yiping,

The linked LS1 docs indicate we should set a value in the "Secure Access register", CSU_SA0. What is the equivalent register on the P1010 ? (I can't find CSU_SA0 in the P1010 reference manual).

 

Thanks again,

David

0 项奖励
回复