Forum Discussion
Julien
Occasional Contributor
7 years agoAdding unused mSGDMA component freezes the read of my UARTs?
Hi, I have a design working on CycloneV Soc (Atlas/DE0 Nano Soc board), that has: a linux environment on the HPS side. It does nothing at the moment. On the FPGA side, a QSys-generaatd project i...
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.