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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  Jonathan Oakley <jro_at_team>
Submitted:  Wed 15 Aug 2012 09:25:18 AM UTC
   
 
Category:  Library Severity:  3 - Normal
Priority:  9 - Immediate Item Group:  libc code
Status:  Fixed Assigned to:  pitchumani
Percent Complete:  0% Open/Closed:  Open
Release:  1.8.0 Fixed Release:  None

Tue 29 Apr 2014 12:53:22 PM UTC, comment #2: 

http://svn.savannah.nongnu.org/viewvc?view=rev&root=avr-libc&revision=2423



This patch has been applied and committed.

Thank you for the contribution.

Pitchumani <pitchumani>
Group Member
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>
Group Member
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.)

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-29 pitchumani StatusConfirmed Fixed
    2014-04-29 pitchumani StatusNone Confirmed
        Assigned toNone pitchumani
    2013-05-24 saaadhu Attached File- Added tiny_wdt_support.patch, #28159
    2013-05-24 saaadhu Attached File- Added tiny_wdt_support.patch, #28158
    2012-11-16 arcanum Priority5 - Normal 9 - Immediate

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code