[Tinyos-devel] more bugging about current consumption on MicaZ in
tinyos-2.x
Eric Weddington
eweddington at cso.atmel.com
Mon Aug 7 14:48:45 PDT 2006
> > >
> > > On 7/27/06, Eric Weddington <eweddington at cso.atmel.com> wrote:
> > > > Thanks, Henri, for your insights, they were quite
> valuable. Yes, GCC
> > > > supports the ATmega1281. However, this support is in
> > > WinAVR, not currently
> > > > in David Gay's specialized distribution of AVR GCC.
> > >
> > > Note that nesC does not require that you use our distribution of
> > > avr-gcc. If you want to use your own, just make sure it's in your
> > > path. TinyOS platforms specify the gcc version to use in the
> > > ".platform" file found in each platform's directory
> > > (tos/platforms/mica2/.platform, e.g.) - look for the
> gcc=... line in
> > > one of those files.
> > >
> > > If you are using cygwin, and a gcc compiled for a non-cygwin
> > > environment (e.g., WinAVR), then you'll need to add a -mingw-gcc
> > > option in the .platform file (this tells the nesC
> compiler to convert
> > > cygwin paths to windows paths). Note that I haven't
> tested this option
> > > recently...
> > >
> > > David Gay
> > > PS: Use a recent version of nesC - earlier ones specified
> the name of
> > > the gcc compiler in two places.
> >
> > Hi David,
> >
> > Does this assume, however, that whatever distribution of
> AVR GCC that one
> > uses, must include your "dollar signs in identifiers" patch
> to binutils
> > (gas)?
>
> Hmm, yes, I was forgetting about that one (it is also possible to hack
> the /usr/lib/ncc/nesc-compile script to replace $ with something else
> before calling gcc, or to replace gcc's assembler output before
> calling avr-as).
>
> David Gay
>
So, in theory, one can use some other symbol than "$" that would not require
a special distribution of AVR GCC? Have you tested this with some other
specified symbol? And lastly, you mentioned using "a recent version" of
nesC: what is the version cutoff that you recommend?
Thanks
Eric Weddington
More information about the Tinyos-devel
mailing list