WDT error using studio 6

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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 is at the top....

thanks
Phil

Attachment(s): 

_________________________________

www.proficnc.com
_________________________________
Go Aussie Go!!!

Last Edited: Mon. Mar 18, 2013 - 09:42 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Now some people should know where to post AS6 related questions. :-) I'll chalk up the beers you owe me.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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 :)

_________________________________

www.proficnc.com
_________________________________
Go Aussie Go!!!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Not the Studio 6 one
Yeah but you JUST KNOW it's AS6 messing up.... :-)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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.

regards
Greg

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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

_________________________________

www.proficnc.com
_________________________________
Go Aussie Go!!!