[Tinyos-devel] more bugging about current consumption on MicaZ in tinyos-2.x

David Gay dgay42 at gmail.com
Mon Aug 7 11:30:53 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.


More information about the Tinyos-devel mailing list