simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Simulavr-devel] avrtest vs simulavrxx


From: Joel Sherrill
Subject: [Simulavr-devel] avrtest vs simulavrxx
Date: Fri, 8 May 2009 13:43:23 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Hi,

In trying to get one of the RTEMS Google Summer of
Code students going on the RTEMS AVR port, Eric W
and I have been going back and forth over weird issues.

I think I have tracked one down to this feature in
avrtest that (I think) is not in simulavrxx and
is probably the culprit

       "  -d           Initialize SRAM from .data (for ELF program)\n"

This sets a flag which is used later only to do this:

       /* Also copy in SRAM.  */
       if (flag_initialize_sram && vaddr >= DATA_VADDR)
           memcpy(cpu_data + vaddr - DATA_VADDR,
                  cpu_flash + addr, filesz);

The avrtest crt0.S code doesn't appear to copy
initialized data into RAM.
Any thoughts on how to implement this in simulavrxx?

--
Joel Sherrill, Ph.D.             Director of Research & Development
address@hidden        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
  Support Available             (256) 722-9985






reply via email to

[Prev in Thread] Current Thread [Next in Thread]