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

 
 

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.

 

Fri 24 May 2013 09:16:22 AM UTC, comment #1:

Attaching a patch that adds wdt_enable/disable support for TINY architecture devices (ATtiny5/9/10/20/40).

ChangeLog

2013-05-23 George Thomas <george.thomas@atmel.com>

* include/avr/wdt.h: Add wdt_enable and wdt_disable macros for
TINY architecture devices.

(file #28158)

Senthil Kumar Selvaraj <saaadhu>
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:
   

Attached Files
file #28159:  tiny_wdt_support.patch added by saaadhu (2kB - text/x-patch - Reattaching patch without irrelevant changes.)
file #28158:  tiny_wdt_support.patch added by saaadhu (3kB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by saaadhu (Updated the item)
  • -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):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 24 May 2013 09:22:00 AM UTCsaaadhuAttached File-=>Added tiny_wdt_support.patch, #28159
    Fri 24 May 2013 09:16:22 AM UTCsaaadhuAttached File-=>Added tiny_wdt_support.patch, #28158
    Fri 16 Nov 2012 06:14:01 PM UTCarcanumPriority5 - Normal=>9 - Immediate

    Back to the top


    Powered by Savane 3.1-cleanup