I am new to the Nios II stuff, I have a design with the simple interval timer peripheral. It is not counting. Basically I expected to be able to read the counter value by reading the snapshot registers by using IORD_ALTERA_AVALON_TIMER_SNAPL & IORD_ALTERA_AVALON_TIMER_SNAPH. But I always get 0.
I tried to start the counter from control register and also tried fidling with the options in Qsys for the timer. However, whatever I do in life, I still can't measure the counter counting up at all.
Here is the code I tried last time:
If possible could you compile a simple project with timer peripheral. I am feeling lost completely.
alt_putstr("Hello from Nios II!\n");
/* Event loop never exits. */