s32k312 hse behavior not same.

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

s32k312 hse behavior not same.

591 次查看
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 回复

570 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复