I have some code that is running on a ADSP-21479 built using VisualDSP++ 5.0 Update 10. I have found some kind of instability that I have not been able to debug and I am looking for any possible assistance on how I can possibly track down the root of the problem.
I send the chip a command via the UART and expect to get back an answer. Instead the chip resets. If I set a breakpoint anywhere in the code, everything functions as expected without any problems. If I add a nop anywhere in the code or simply just change the code slightly, everything functions as expected without any problems.
I have no idea if I have encountered a memory issue, a stack issue, a pointer issue, etc. This is very difficult to debug because as soon as I add a breakpoint or change the code the problem goes away.
Any hints as to what it could possibly be or how I might be able to debug?