Hi Phil, I tried updating my avr-gcc compiler to 4.1.2 using the rpm mentioned in http://tinyos.stanford.edu/tinyos-wiki/index.php/Installing_TinyOS_2.1 but the problem still exists. I tried implementing some other solutions by attempting to recompile the toolchain, but the gcc structure i have (with TinyOS) seems to be vastly different. I am out of options to try to get even any medium sized TinyOS program to compile with the 'avr-studio-debug' flag Please advise.
Thanks, Lewis On Thu, Apr 10, 2014 at 1:48 PM, Philip Levis <p...@cs.stanford.edu> wrote: > This seems to be a basic avr-gcc problem: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19087 > > It seems the general solution people are proposing involves rebuilding the > compiler/tool chain so that dwarf debugging addresses are 2 bytes rather > than 4. I am wondering whether newer avr-gcc releases solve this problem. > > Phil > > > > > On Apr 10, 2014, at 10:30 AM, Roadstar Runner <redstripe...@gmail.com> > wrote: > > > Phil, > > Thanks once again. > > Is there an easy way for me to find a fix/workaround ? > > Lewis > > > > > > > > > > On Thu, Apr 10, 2014 at 12:13 PM, Philip Levis <p...@cs.stanford.edu> > wrote: > > (responded to this unicast, thought I would put it here too) > > > > It looks like the avr-studio-debug flag doesn't support code sizes > greater than 65,535 bytes. I'm not exactly sure why. > > > > Phil > > > > > > > > > > On Apr 8, 2014, at 3:00 PM, Roadstar Runner <redstripe...@gmail.com> > wrote: > > > > > > > > I have been compiling my program with the 'avr-studio-debug' flag so > that i can use a JTAG to debug my software. > > > Recently, even though my program compiles normally without the debug > flag, it fails when i use the avr-studio-debug flag. I get a bunch of > cryptic error message that reads like this > > > > > > /tmp/ccEjxlre.s:74677: Error: value of 65568 too large for field of 2 > bytes at 26349 > > > > > > > > > It seems that code i add, even modifying a local variable causes the > compilation to fail. > > > > > > Here is my ROM/RAM size that compiles correctly with the debug flag. > > > > > > 68796 bytes in ROM > > > 614 bytes in RAM > > > > > > Thanks > > > > > > _______________________________________________ > > > Tinyos-help mailing list > > > Tinyos-help@millennium.berkeley.edu > > > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > >
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help