hi all, having an issue with the watchdog...
void startup(void) { wdt_enable(WDTO_2S);
I am getting an error in studio 6 as per the picture, all is compiling, but WDT is going off to quickly (100ms or so...)
any ideas?
#include
thanks
Phil
Now some people should know where to post AS6 related questions. :-) I'll chalk up the beers you owe me.
But it is GCC related as well as I am using the GCC MAKE it. Not the Studio 6 one :)
So I flipped a coin on which forum :)
Which model of AVR is this?
Although Naggy highlights this do you actually get the error when you build? IOW is this a library or a Naggy error?
Not the Studio 6 one
I have had this issue as well. the simulator in as6 has a watchdog that fires too soon for my atmega16.
when I simulate large slabs of code I disable the watchdog.
its an ATMEGA128RFA1, and yes I get the naggy highlight, but no error on compile, so yes John, it probably is just Studio6 :)
however, it appears to be firing the watchdog every 100ms, rather than every 2S....
phil