Altera_Forum
Honored Contributor
13 years agoWatchdog doesn't start
Hallo,
I try to use the WD component in my Qsys system. In general a very simple thing I thought. - Add to system with a defined timeout period - generate / build all - start wd --> it runs and could never be stopped. But here is the problem, it never starts. I found that: http://www.altera.com/support/kdb/solutions/rd12152011_297.html?gsa_pos=1&wt.oss_r=1&wt.oss=watchdog and I connected the chip select. Then I started re- compilation in quartus. But no effect. Then I tried to see what the control register is set to. alt_printf("0x%x\n", IORD_ALTERA_AVALON_TIMER_CONTROL(WATCHDOG_BASE));
IOWR_ALTERA_AVALON_TIMER_CONTROL(WATCHDOG_BASE, 0x0004);
alt_printf("0x%x\n", IORD_ALTERA_AVALON_TIMER_CONTROL(WATCHDOG_BASE));the output is always 0x00. It seems like the register write is not working. I use Quartus 11.1 sp2. The project is for an C4. And I use the small_c_library and the reduced_device_driver option. Could someone explain this behavior? Any ideas? Greets Sim