s32k312 hse behavior not same.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s32k312 hse behavior not same.

619 Views
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 Kudos
Reply
1 Reply

598 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply