[Avrora] Problem with C-Print
daniel.minder at uni-due.de
Wed Oct 20 08:58:37 PDT 2010
> I still don't know the exact
> reason but I know that using the .elf file directly and skipping the
> conversion with avr-objdump will make it work.
As you can see from avrora/syntax/objdump/ObjDumpProgramReader.java only
the .text and .data sections of a program are loaded. The symbol for the
c-print monitor (debugbuf1) is located in the .bss section and,
therefore, Avrora will not know it.
When adding .bss to the loadable sections Avrora will throw an exception
because the address of the symbol is too high. This is correct since we
should not _load_ the whole section but only import the symbols. This is
what the ELF parser is doing (in ELF the symbol table is separate and
the .bss section is not flagged als loadable). But to achieve this
behaviour we would need to modify (at least) the ObjDumpReformatter...
To be honest: I don't see any advantage of the .od format. The plain exe
is more flexible and we can skip one working step. Is there any reason
for using the .od format? If not, I would not investigate this issue any
University of Duisburg-Essen, Networked Embedded Systems
Bismarckstr. 90, 47057 Duisburg, Germany
More information about the Avrora