bugAVR C Runtime Library - Bugs: bug #37103, ATtiny5/9/10/20/40 watchdog can't...

 
 
Show feedback again

bug #37103: ATtiny5/9/10/20/40 watchdog can't be enabled

Submitted by:  Jonathan Oakley <jro_at_team>
Submitted on:  Wed 15 Aug 2012 09:25:18 AM UTC  
 
Category: LibrarySeverity: 3 - Normal
Priority: 9 - ImmediateItem Group: libc code
Status: NonePercent Complete: 0%
Assigned to: NoneOpen/Closed: Open
Release: 1.8.0Fixed Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 15 Aug 2012 09:25:18 AM UTC, original submission:

The macro expansion for wdt_enable() used for the ATtiny5/9/10/20/40 family refers to the WDCE bit, which doesn't exist. Any invocation of wdt_enable() will show this, I don't believe it merits an example file.

Watchdog change enable is accomplished by writing 0xD8 to the CCP register in these devices. I'm not sufficiently familiar with inline assembly in GCC to make a good job of fixing it myself - sorry!

The obvious workaround is to write the correct values directly to the relevant registers.

Jonathan Oakley <jro_at_team>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by arcanum (Updated the item)
  • -unavailable- added by jro_at_team (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 16 Nov 2012 06:14:01 PM UTCarcanumPriority5 - Normal=>9 - Immediate
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup