bugAVR C Runtime Library - Bugs: bug #47734, WDTO_4S and WDTO_8S are incorrect

 
 

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

bug #47734: WDTO_4S and WDTO_8S are incorrect

Submitter:  None
Submitted:  Tue 19 Apr 2016 12:53:02 AM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  Invalid Assigned to:  None
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  2.0.0
Fixed Release:  None

Wed 20 Apr 2016 05:44:30 AM UTC, comment #4: 

I added a remark in the comment of these constants, telling
that their values does not match the control register's bit
pattern.

Joerg Wunsch <joerg_wunsch>
Group administrator
Wed 20 Apr 2016 04:55:28 AM UTC, comment #3: 

The WDTO_xxx constants are meant to be used together with
wdt_enable(), which also takes of everything else which is
required, not just the timeout value itself.

Joerg Wunsch <joerg_wunsch>
Group administrator
Wed 20 Apr 2016 12:01:05 AM UTC, comment #2: 

Atmel-8271  is the spec for teh 168/328/P
Atmel-2586 for the ATTiny's

Okay I was using the define's to set the bits directly to enable only the watchdog interrupt. Which is why I saw the problem then.

        WDTCR = _BV(WDIE) | _BV(WDP3) | _BV(WDP0) | WDTO_8S;

If wdt_enable() splits the bits that is fine.

Anonymous
Tue 19 Apr 2016 05:57:37 AM UTC, comment #1: 

What do you mean by "atmel-8271 and atmel-2586"?

In general, your remark is incorrect.  Splitting off bit 3
is correctly handled in wdt_enable() itself.atmel-8271 and atmel-2586

Joerg Wunsch <joerg_wunsch>
Group administrator
Tue 19 Apr 2016 12:53:02 AM UTC, original submission:  

In the watchdog control register WDP3 is split by two bits from WDP2.

Values should be:
WDTO_4S 0x20
WDTO_8S 0x21

This is for atmel-8271 and atmel-2586.

Thanks

Anonymous

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-04-20 joerg_wunsch StatusNeed Info Invalid
        Open/ClosedOpen Closed
    2016-04-19 joerg_wunsch StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code