Forum Discussion
Altera_Forum
Honored Contributor
14 years agoYes, the test is identical. I'm not sure the CPU is running. It seems I'm now back to a similar problem I had before where the code never reaches main. It seemed to resolve itself when it happened before, or at least I don't know what I changed that fixed it. Simulation in modelsim revealed that the code never accesses my test memory or writes to the PIO, and it is really confusing how this could be because I literally changed nothing in the code.
No watchdog timer. The CPU shouldn't reset until the system reset signal is asserted. This only happens in hardware via a push button. Pressing the reset signal while the debugger is running forces the debugger to pause and the code it points to is the reset vector. If I continue from that point the code still never reaches main, but it does tell me that the reset button is working.