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 the nios crashes. These addresses are not contiguous, and are different each time (more often at the end of memory). The sram size is 2047bytes. The code size is arround 403kbytes and there is 1644 KBytes free for stack + heap. The stackPointer is at @0x23FFFCC (@2200000 <= addr <=@23FFFFF). I have enabled the "enable_runtime_stack_checking" option in bsp editor to verify if a stack overflow could be responsible for this. I wonder how this option can be used: any indication in the console when an overflows occurs ? Does a Special code have to be added to handle stack overflow specific interruption ? Is another thing could generate these errors ? I use quartus/nios ide 9.1sp1 // windows7 x64. Thanks for help.