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.