AVR C Runtime Library - Bugs: bug #26188, Wrong or missing definition of...
You are not allowed to post comments on this tracker with your current authentication level.
bug #26188: Wrong or missing definition of SIGNATURE_X in iom644.h and others
Submitter: | Andreas Vogt <tico_avr> | ||
Submitted: | Wed 15 Apr 2009 04:10:02 PM UTC | ||
Category: | Header | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | Header files |
Status: | Fixed | Assigned to: | arcanum |
Percent Complete: | 100% | Open/Closed: | Closed |
Release: | 1.6.4 | Fixed Release: | 1.6.4 |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-04-25 | arcanum | Assigned to | None | arcanum | |
Open/Closed | Open | Closed | |||
Fixed Release | None | 1.6.4 | |||
2009-04-25 | arcanum | Status | None | Fixed | |
Percent Complete | 0% | 100% |
Powered by Savane 3.13-758e.
Corresponding source code
The file iom644.h contains the line:
#define SIGNATURE_2 0x09
This definition is true only for the ATmega644, but NOT for the ATmega644P. The file io.h includes iom644.h for both MCUs, so, if you compile for ATmega644P, the definition is wrong and should be 0x0a.
The files iom164.h and iom324.h do not contain any signature definitions.
The signatures for the ATmega164P (iom164.h) are (taken from ATMEL doku):
#define SIGNATURE_0 0x1e
#define SIGNATURE_1 0x94
#define SIGNATURE_2 0x0a
The signatures for the ATmega324P (iom324.h) are (taken from ATMEL doku):
#define SIGNATURE_0 0x1e
#define SIGNATURE_1 0x95
#define SIGNATURE_2 0x08