Forum Discussion
Altera_Forum
Honored Contributor
15 years agoRegarding Hello World Template
hi this is sundaram from University of Waterloo. I'm current having a problem with the hello world template. I have been working on the FPGA for some months and it has always worked as expected. Howe...
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.