Forum Discussion
Altera_Forum
Honored Contributor
20 years agoProgram goes back to reset address
Hello all, I wrote my own boot loader based on Altera's example boot loader. The biggest differences are that my boot loader uses a defined address to load the program code and I use ldw in...
Altera_Forum
Honored Contributor
19 years agoYour first test (stw, ldw) tests your data cache, not SDRAM, so you should probably ignore it. Your second test tests SDRAM. I'm not a hardware engineer, but I'd try stwio, wait a few clocks, then ldwio, and see what happens. Succeed or fail, there's still probably an issue with your SDRAM.
I haven't tried this, but it may be possible for the data cache to "cache" empty address space. So, you could be using the wrong address.