jmattsson/tinyos-arduino — Issue #1: compiles
Author: StartDog
Created: 2012-01-27 15:54:33+00:00
State: open

I am interested in the tinyos-arduino project. I downloaded it and have cygwin set up to compile tinyos. I can compile compile micaz programs but not uno programs. E.g., using the code tree provided here. But when I compile using the code tree here using make uno, I get lots of errors and am wondering if my environment is not set up correctly. Note I CAN compile for micaz (make micaz) and everything works properly but I get the following when I compile the Blink program.

If you can offer any quick answers then thanks!!

Thomas

$ make uno
mkdir -p build/uno
compiling BlinkAppC to a uno binary
ncc -o build/uno/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -ta rget=uno -fnesc-cfile=build/uno/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 --para m max-inline-insns-single=100000 -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME= \"Administrator\" -DIDENT_HOSTNAME=\"D919GY81\" -DIDENT_USERHASH=0x14d853bdL -DI DENT_TIMESTAMP=0x4f2215f6L -DIDENT_UIDHASH=0x71144060L -fnesc-dump=wiring -fnesc -dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, component s)' -fnesc-dumpfile=build/uno/wiring-check.xml BlinkAppC.nc -lm In file included from /opt/tinyos/tos/chips/atm328p/atm328phardware.h:35,
from /opt/tinyos/tos/platforms/uno/hardware.h:36,
from /opt/tinyos/tos/system/SchedulerBasicP.nc:52:
/usr/lib/gcc/avr/4.1.2/../../../../avr/include/avr/io.h:295:6: warning: #warning "device type not defined"
In file included from /opt/tinyos/tos/chips/atm328p/McuSleepC.nc:32:
/usr/lib/gcc/avr/4.1.2/../../../../avr/include/avr/sleep.h:69:2: error: #error "
No SLEEP mode defined for this device."
In file included from /opt/tinyos/tos/system/TinySchedulerC.nc:52:
In component `McuSleepC':
/opt/tinyos/tos/chips/atm328p/McuSleepC.nc: In function `McuSleep.sleep':
/opt/tinyos/tos/chips/atm328p/McuSleepC.nc:43: `MCUCR' undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/McuSleepC.nc:43: (Each undeclared identifier is re ported only once
/opt/tinyos/tos/chips/atm328p/McuSleepC.nc:43: for each function it appears in.)

/opt/tinyos/tos/chips/atm328p/McuSleepC.nc:43: `SE' undeclared (first use in thi s function) In file included from /opt/tinyos/tos/platforms/uno/PlatformLedsC.nc:45,
from /opt/tinyos/tos/system/LedsC.nc:49,
from BlinkAppC.nc:56:
In component `HplAtm328pGeneralIOC':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc: At top level:
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:70: `PORTB' undeclare d here (not in a function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:70: `PINB' undeclared here (not in a function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:70: `DDRB' undeclared here (not in a function) In file included from /opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPort
P.nc:50,
from /opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc
:70,
from /opt/tinyos/tos/platforms/uno/PlatformLedsC.nc:45,
from /opt/tinyos/tos/system/LedsC.nc:49,
from BlinkAppC.nc:56:
In component `HplAtm328pGeneralIOPinP':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc: In function `Gene
ralIO.get':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc:39: `__SFR_OFFSET'
undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc: In function `Gene
ralIO.set':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc:40: `__SFR_OFFSET'
undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc: In function `Gene
ralIO.clr':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc:41: `__SFR_OFFSET'
undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc: In function `Gene
ralIO.toggle':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc:42: `__SFR_OFFSET'
undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc: In function `Gene
ralIO.makeInput':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc:46: `__SFR_OFFSET'
undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc: In function `Gene
ralIO.makeOutput':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc:47: `__SFR_OFFSET'
undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc: In function `Gene
ralIO.isInput':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc:49: `__SFR_OFFSET'
undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc: In function `Gene
ralIO.isOutput':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOPinP.nc:50: `__SFR_OFFSET'
undeclared (first use in this function) In component `HplAtm328pGeneralIOPortP':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc: At top level:
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:70: component argumen ts must be constants
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:70: component argumen ts must be constants
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:70: component argumen ts must be constants In component `HplAtm328pGeneralIOC':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:71: `PORTC' undeclare d here (not in a function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:71: `PINC' undeclared here (not in a function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:71: `DDRC' undeclared here (not in a function) In component `HplAtm328pGeneralIOPortP':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:71: component argumen ts must be constants
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:71: component argumen ts must be constants
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:71: component argumen ts must be constants In component `HplAtm328pGeneralIOC':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:72: `PORTD' undeclare d here (not in a function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:72: `PIND' undeclared here (not in a function)
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:72: `DDRD' undeclared here (not in a function) In component `HplAtm328pGeneralIOPortP':
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:72: component argumen ts must be constants
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:72: component argumen ts must be constants
/opt/tinyos/tos/chips/atm328p/pins/HplAtm328pGeneralIOC.nc:72: component argumen ts must be constants In file included from /opt/tinyos/tos/chips/atm328p/timer/AlarmMilli32C.nc:41,
from /opt/tinyos/tos/platforms/uno/HilTimerMilliC.nc:41,
from /opt/tinyos/tos/system/TimerMilliP.nc:52,
from /opt/tinyos/tos/system/TimerMilliC.nc:48,
from BlinkAppC.nc:57:
In component `Atm328pAlarms0C':
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:45: `OCR0A' undeclared he re (not in a function)
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:45: `TCNT0' undeclared he re (not in a function)
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:46: `TIMSK0' undeclared h ere (not in a function)
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:46: `OCIE0A' undeclared h ere (not in a function)
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:47: `TIFR0' undeclared he re (not in a function)
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:47: `OCF0A' undeclared he re (not in a function) In file included from /opt/tinyos/tos/chips/atm328p/timer/AlarmMilli32C.nc:41,
from /opt/tinyos/tos/platforms/uno/HilTimerMilliC.nc:41,
from /opt/tinyos/tos/system/TimerMilliP.nc:52,
from /opt/tinyos/tos/system/TimerMilliC.nc:48,
from BlinkAppC.nc:57:
In component `HplAtm328pAlarmC':
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:45: component arguments m ust be constants
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:45: component arguments m ust be constants
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:46: component arguments m ust be constants
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:47: component arguments m ust be constants In component `Atm328pAlarms0C':
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:53: `OCR0B' undeclared he re (not in a function)
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:53: `TCNT0' undeclared he re (not in a function)
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:54: `TIMSK0' undeclared h ere (not in a function)
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:54: `OCIE0B' undeclared h ere (not in a function)
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:55: `TIFR0' undeclared he re (not in a function)
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:55: `OCF0B' undeclared he re (not in a function) In component `HplAtm328pAlarmC':
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:53: component arguments m ust be constants
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:53: component arguments m ust be constants
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:54: component arguments m ust be constants
/opt/tinyos/tos/chips/atm328p/timer/Atm328pAlarms0C.nc:55: component arguments m ust be constants In file included from /opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0C.nc:4
1,
from /opt/tinyos/tos/chips/atm328p/timer/Atm328pCounterTimer0C.
nc:43,
from /opt/tinyos/tos/chips/atm328p/timer/CounterMilli32C.nc:41,

from /opt/tinyos/tos/chips/atm328p/timer/AlarmMilli32C.nc:42,
from /opt/tinyos/tos/platforms/uno/HilTimerMilliC.nc:41,
from /opt/tinyos/tos/system/TimerMilliP.nc:52,
from /opt/tinyos/tos/system/TimerMilliC.nc:48,
from BlinkAppC.nc:57:
In component `HplAtm328pTimer0P':
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc: In function `Timer.get
':
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc:52: `TCNT0' undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc: In function `Timer.set
':
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc:58: `TCNT0' undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc: In function `Timer.tes
t':
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc:67: `TIFR0' undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc:67: `TOV0' undeclared ( first use in this function)
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc: In function `Timer.cle
ar':
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc:73: `TIFR0' undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc:73: `TOV0' undeclared ( first use in this function)
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc: In function `Timer.sta
rt':
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc:82: `TCCR0B' undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc:82: `CS00' undeclared ( first use in this function)
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc:88: `TIMSK0' undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc:88: `TOIE1' undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc: In function `Timer.sto
p':
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc:98: `TCCR0B' undeclared (first use in this function)
/opt/tinyos/tos/chips/atm328p/timer/HplAtm328pTimer0P.nc:98: `CS00' undeclared ( first use in this function)
make: *** [exe0] Error 1