[Tinyos-devel] more bugging about current consumption on MicaZ in
tinyos-2.x
David Gay
dgay42 at gmail.com
Mon Aug 7 13:11:42 PDT 2006
On 8/7/06, Eric Weddington <eweddington at cso.atmel.com> wrote:
>
> > -----Original Message-----
> > From: David Gay [mailto:dgay42 at gmail.com]
> > Sent: Monday, August 07, 2006 12:31 PM
> > To: TinyOS-Devel list; Eric Weddington
> > Cc: henri dubois-ferriere
> > Subject: Re: [Tinyos-devel] more bugging about current
> > consumption on MicaZ in tinyos-2.x
> >
> > 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
More information about the Tinyos-devel
mailing list