s32k312 hse behavior not same.

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

s32k312 hse behavior not same.

589件の閲覧回数
victory
Contributor V

from the previous question, i disabled sram dcache and icache, output is ok. now I debug code with no breakpoint, the result is incorrect.

RTD 4.0, only sram used. no dtcm ram.

workflow as follow:

 - FormatKeyCatalogs()
 - import_aes_key()
 - MacSignSrv()
 - check tag result.
 

for example,  i use hse to calc aes-cmac,  with the same code:

1. without JTAG, reset and run, serial ouput is always correct

2. with JTAG debug,start from main and run to the end, no breakpoint, it always return error code 0xa5aa5317 at MacSignSrv()

3. with JTAG debug, start from main and run step by step, it may return correct after serval try.

could you give me some advice which may cause the problem.

 

0 件の賞賛
返信
1 返信

568件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

There is a key access restriction (flag HSE_KF_ACCESS_DEBUG_PROT). Possibly it could be a reason.

0 件の賞賛
返信