2408743_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2408743_en-US

2408743_en-US

S32K312 - Bus fault when Reading Secure Debug Password

Hello,

On the S32K312, I'm trying to activate the Secure Debug feature using a routine in my embeded software


My code is doing the following :

- Read Secure debug Password (CUST_DB_PSWD_A @ UTEST 0x1B00 0080)

- if the Password is not set (all bytes @ 0xFF), program it


What I'm observing is that when the device is in Lifecycle CUST_DEL, this code is working correctly.
However, when the lifecycle is advanced to either OEM_PROD or IN_FIELD, reading  the CUST_DB_PSWD_A triggers a bus fault exception.

I was not able to identify in the reference Manual that this was the expected behavior.
Is this normal ?
And if yes, how can the embedded code check if a custom secure Debug password is programmed or not, without trigerring an exception ?


Thank you

Re: S32K312 - Bus fault when Reading Secure Debug Password

Hi @Bijam 

Since the Lifecycle (LC) has already been advanced, there is no need to verify whether the password has been programmed.

Whether HSE firmware is used or not, secure debug access can only be enabled after the debug password has been configured and the device LC has been advanced. The LC cannot be advanced unless the password has already been programmed.

If you still need to confirm that the password is present, the best approach is to check the current LC state first. Only attempt to read/program CUST_DB_PSWD_A when the MCU is in CUST_DEL. If the MCU is already in OEM_PROD or IN_FIELD, skip the password verification entirely. The password must already be programmed.


BR, VaneB

タグ(1)
評価なし
バージョン履歴
最終更新日:
昨日
更新者: