Forum Discussion
Altera_Forum
Honored Contributor
14 years agoYour issue might be different. Do you have enough room for the stack and heap? Remember that when you allocate memory, use global variables, or have deep function calls (other things can cause this too) your stack and heap usage increases which isn't reported during compile time. If you run out of room then the stack and heap collide.
One way to test this is to program your memory with a repeating pattern, run your code, then take a look at the contents to see if that pattern is still residing in the stack and heap regions. If the pattern is gone then the stack and heap most likely there was a collision. There are other ways to perform stack and heap collision but I don't have those details handy.