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:
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.
There is a key access restriction (flag HSE_KF_ACCESS_DEBUG_PROT). Possibly it could be a reason.