Forum Discussion
Julien
Occasional Contributor
7 years agoWell this is typical. I have been struggling with this for a bit, finally decided to call for ideas here, and then an hour later it hit me: STACK-related issue.
It turns out my NIOS app uses a 4K buffer on the stack, and the build log indicates that around 4500 bytes are free to use for stack+heap. So no wonder I got weird behavior even though I did not even access the mSGDMA, and no wonder small changes unrelated to this made the application work or crash.
I wonder how many times in my developer life I will end-up in stack/heap collision hell, AND not see it immediately :(
Anyway, sorry for the question, I'll proceed with figuring out how/where the NIOSII memory settings are and how to adjust them.