Forum Discussion
Altera_Forum
Honored Contributor
10 years agoThe RAM was definitely getting corrupted - I did a dump and the contents had changed. The issue was completely repeatable. Any restart of the PC caused the RAM to become corrupt which was solved only by reconfiguring the FPGA.
The linker script is set up correction. The data memory is being used for the stack and variables, the instruction memory used for the instruction region. And each RAM is only connected to the Nios (both are single port RAMs not shared with anything else). --- I've since moved to using the Flash and the Nios Boot Copier, and the problem has gone away. Basically every time the Nios processor gets reset, it reads the instruction memory contents from the Flash to the On-Chip RAM and boots.