Forum Discussion
Altera_Forum
Honored Contributor
15 years agoCannot access memory at address xxx, stack overflow management ?
Hi, I have some problems with my Nios II design (running on cycloneIII, ssram cy7c1380d). Very often I have this error: "Cannot access memory at address xxx" for several addresses and then th...
Altera_Forum
Honored Contributor
15 years agoStack overflow can be due to one of these:
- recursive calls (but you say you don't use them) - a lot of nested calls - big local variables, like arrays or structs The more common is the last one. If this is your case, define these variables as static inside the function or as global variables. You must also check heap: do you use it directly with malloc or calloc calls? or do you use OS or drivers which allocate a lot of memory? Which kind of project is yours?