Altera_Forum
Honored Contributor
15 years agoNIOS II Call Stack
Hi.
Earlier I compiled and ran the memory tester example program and during testing the program consistently deviated into a function trying to recieve a character from the UART. I suspected stack corruption and sure enough when I start the debugger and check the SP register, its sitting just inside the boundary of the SDRAM which is about to be overwritten. My question is, how is it decided where the stack will begin, and how do I ensure the stack starts in the on chip RAM I created for this test?