Hi Kaka,
Can you provide a complete reproduction code in a CCS project we run on C6678 EVM?
On the other hand, to isolate your issue,
- By completely disabling cache (L1D and L2), do you still see the same problem?
- Does changing the cache operations to global cache operations instead of block operations help?
- Does declaration the variable temp and the argument ptr as volatile help? (For example, volatile bool temp, and volatile bool *ptr.) (I don't think it's likely...)
Regards,
Atsushi