Forum Discussion
Altera_Forum
Honored Contributor
8 years agoNIOS SDRAM hang up after reset
Dear Forum, as I wish to use SDRAM as the main program memory for testing nios- code I don’t understand why this code works always only on times after download – after reset the nios hangs up. ...
Altera_Forum
Honored Contributor
8 years agoWhen you say that you connected the reset button to the PLL, do you mean that you reset the PLL when pressing the reset button? In that case you won't send a clock signal to the SDRAM when reset is pressed and if it is for a too long time it will probably cause refresh problems and it's not guaranteed that the contents of the SDRAM will survive the reset.
Is the CPU's reset vector set to the SDRAM? I assume that memory_base is the address of the SDRAM? In that case by writing something at that base address, you overwrite the reset vector, probably causing the CPU to crash at reset.