AVR C Runtime Library - Bugs: bug #44140, wdt_disable() macro clobbers...
You are not allowed to post comments on this tracker with your current authentication level.
bug #44140: wdt_disable() macro clobbers prescaller bits and can cause unexpected resets
| Submitter: | None | ||
| Submitted: | Sat 31 Jan 2015 05:05:09 PM UTC | ||
| Category: | Library | Severity: | 3 - Normal |
| Priority: | 5 - Normal | Item Group: | None |
| Status: | Fixed | Percent Complete: | 100% |
| Assigned to: | pitchumani | Originator Email: | -email is unavailable- |
| Open/Closed: | Open | Release: | Any |
| Fixed Release: | None | ||
|
Wed 06 May 2015 11:40:00 AM UTC, comment #4: |
Georg-Johann Lay <gjlayde> |
|
Mon 09 Mar 2015 06:37:07 AM UTC, comment #3: |
Pitchumani <pitchumani> |
|
Thu 05 Mar 2015 02:56:20 PM UTC, comment #2: This new code resolves the unintentional watchdog reset problem. Thanks!
|
Anonymous |
|
Thu 05 Mar 2015 11:35:37 AM UTC, comment #1: Hi Josh,
|
Pitchumani <pitchumani> |
|
Sat 31 Jan 2015 05:05:09 PM UTC, original submission:
The wdt_disable() macro in wdt.h overwrites the prescaler bits as an unintended side effect when setting the watchdog change enable bit.
|
Anonymous |
Depends on the following items: None found
Items that depend on this one: None found
Follow 4 latest changes.
| Date | Changed by | Updated Field | Previous Value | => | Replaced by |
|---|---|---|---|---|---|
| 2015-05-06 | gjlayde | Attached File | - | Added wdt-2.diff, #33934 | |
| 2015-03-09 | pitchumani | Status | In Progress | Fixed | |
| 2015-03-05 | pitchumani | Status | None | In Progress | |
| Assigned to | None | pitchumani |

Remaks to
https://savannah.nongnu.org/bugs/download.php?file_id=33934
This is completely untested. In particular, the right fix for the latter 2 might be to use LDS/STS instead of IN/OUT and not adjusting operands.