2379967_en-US

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

2379967_en-US

2379967_en-US

Is it possible Verify Backdoor using Trace32 in s32k144?

HI, 

I have question about s32k144 using Trace32.

I already check that setting password using Trace32 is possible. 

like

Data.set SD:400 %Long &pwd_1

Data.set SD:404 %Long &pwd_2

Data.set SD:40C %Byte 0xBF

but after that, I don't know is it possible to access debug port after secure setting. 

in Reference manual 

LGI_0-1781167543918.png

1. I think it means T32 cannot access after security. right? 

but the manual mention that

"A mass erase via the debugger is allowed even when some memory locations are protected."

2. Is it possible to mass erase using Trace32 after security? 

3. So...Is it possible Verify Backdoor using Trace32 in s32k144? 

4. And....the reference manual said

LGI_1-1781167871961.png

Does this mean that inserting code into the firmware is the only way to verify the backdoor key?

thank you. 

Re: Is it possible Verify Backdoor using Trace32 in s32k144?
Thanks for answer my question. 
 
So, I have some question for your answer.
 
you said
 
if it is not disabled by MEEN bits and only if CSEc is not enabled
 
It is possible mass erase using Trace32.
 
1. How can I set CSEc not enabled?
 

2. If Trace32 is only able to access the target via the SWD port,

    would it still be possible to perform a mass erase using Trace32?

3. In addition, if Trace32 supports any access methods to the S32K144 other than the SWD port,

   I would appreciate it if you could provide some information about those methods as well.


thank you for your support. 

Re: Is it possible Verify Backdoor using Trace32 in s32k144?

Hi @LGI 


  1. I think it means T32 cannot access after security. right?

but the manual mention that


"A mass erase via the debugger is allowed even when some memory locations are protected."


If the device is secured, you are allowed only to run boundary scan chain operations and to perform mass erase. And mass erase can be performed only if it is not disabled by MEEN bits and only if CSEc is not enabled (enabled CSEc blocks mass erase command).

  1. Is it possible to mass erase using Trace32 after security?

Yes but not always – as mentioned above.


  1. So...Is it possible Verify Backdoor using Trace32 in s32k144?

No.


  1. And....the reference manual said

Does this mean that inserting code into the firmware is the only way to verify the backdoor key?


Yes. You can take a look at this SW example:

https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-Verify-Backdoor-Access-Key-S32DS1-3...


Regards,

Lukas

Re: Is it possible Verify Backdoor using Trace32 in s32k144?
  1. How can I set CSEc not enabled?

CSEc is disabled by default. It can be enabled by Program Partition command with “CSEc Key Size” parameter different from zero.

To be able to mass erase device with CSEc enabled, it would be necessary to erase all keys (reset the device back to factory state) using CMD_DBG_CHAL and CMD_DBG_AUTH commands with knowledge of MASTER_ECU_KEY.


  1. If Trace32 is only able to access the target via the SWD port,

    would it still be possible to perform a mass erase using Trace32?


If mass erase is not disabled by MEEN or CSEc, you can use command flash.UNSECUREerase in Trace32.


  1. In addition, if Trace32 supports any access methods to the S32K144 other than the SWD port,

   I would appreciate it if you could provide some information about those methods as well.


No, there are no other options.   

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