Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHi mountain8848,
Sounds like a timer configuration issue. Check your config file to make sure the timer macros are set correctly for your hardware configuration. Specifically, check: CFG_NIOS_TMRMS - the number of milliseconds per interrupt. CFG_NIOS_TMRCNT - define this if you want to change the timer count register (e.g. to slow down a high res timer). CFG_HZ - the timer frequency. In general, I recommend 10 msec or higher for the u-boot timer. There's usually no need for anything faster in a bootloader ;-) BTW: you can get a real rough estimate of your interrrupt period by simply using the u-boot 'irq' command -- to view the number of interrupts over a period of time. It's handy for simple estimates -- like making sure you're not off by a factor of 10. Regards, --Scott