avra generates incorrect code on the ATmega88
Bug #124472 reported by
Michael Buesch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
avra (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: avra
The avra Atmel AVR Assembler generates incorrect code for the ATMega88.
It starts the .dseg segment at 0x60, which is incorrect for the m88. On the m88 the SRAM starts at 0x100.
So to workaround the issue, one can add the following dummy code to the beginning of the sourcecode file:
.dseg
STUPID_AVRA_BUG: .byte 0xA0
This will skip the first 0xA0 bytes.
Nevertheless, the shipped version on ubuntu (1.0.1) is _damn_ old. Latest version available is 1.2.2.
The bug may be fixed there. I didn't check that, yet.
To post a comment you must log in.
I just verified that the bug is fixed on latest avra-1.2.2.
So I'd suggest to update the ubuntu avra version.