Hi,
I am a grad student in Toronto. It would be very nice if someone could help me
out a little bit with the following problem I am facing.
When I compile a custom tinyos app (Blimps) using "make micaz", the app
compiles (with a few async call and non-atomic read/write warnings).
This app is roughly doing the same function as Surge. The difference is that it
senses a bunch of items (light, temp, humidity etc) using the MTS400
sensorboard and sends it to the PC. On the PC the modified java app
(oscilloscope) plots only the temperature readings. The "Blimps" app uses
standard Multihop routing and I've downloaded the MTS400 support files from
/contrib/xbow/tos/sensorboards/mts400 CVS folder, and placed into
/tos/sensorboards on the local hard drive.
I've also downloaded /contrib/xbow/tos/interfaces/SoDebug.h and placed into
/tos/interfaces on the local hard drive.
If I try to compile using "make pc" (for TOSSIM), I get a lot of compilation
warning messages, unfortunately ending in the app not compiling.
The bulk of the errors seem to related to bunch of "unidentified identifiers".
Was wondering if someone could help me compile the app sucessfully ?
It seems these identifiers (e.g. UBRR0H) are defined in
/usr/local/avr/include/avr/iom128.h
/usr/local/avr/include/avr/iom162.h
/usr/local/avr/include/avr/iom169.h
/usr/local/avr/include/avr/iom64.h
.. these files in turn are "included" via <io.h>
I don't understand why "make micaz" compiles, while "make pc" indicates
"unidentified identifiers" for the same app.
In case, I need to provide any other information to help someone suggest
possible answers, please let me know. At the moment I do not know if I am
allowed to post messages with attachments (source files of the Blimps app).
btw, this is just the first step towards trying to integrate TinySec into this
app. Hope I can find a solution via the group's help.
Thank you to everyone who tries to help me out.
- Ajay, Toronto.
compilation excerpt follows (the actual warnings/errors are a lot, this is just
a small portion obtained by pressing Ctrl-C):
[EMAIL PROTECTED] /opt/tinyos-1.x/apps/Blimps
$ make pc
mkdir -p build/pc
compiling Blimps to a pc binary
ncc -o build/pc/main.exe -g -O0 -I%T/lib/Route -I%T/lib/Queue
-I%T/lib/BroadCast -pthread
-fnesc-nido-tosnodes=1000 -fnesc-simulate -Wall -Wshadow
-DDEF_TOS_AM_GROUP=0x7d
-Wnesc-all -target=pc -fnesc-cfile=build/pc/app.c -board=mts400
-DIDENT_PROGRAM_NAME=\"Blimps\" -DIDENT_USER_ID=\"user\"
-DIDENT_HOSTNAME=\"awmxdp\" -DIDENT_USER_HASH=0x9cffc329L
-DIDENT_UNIX_TIME=0x46d9c0afL -DIDENT_UID_HASH=0xd8d6038eL Blimps.nc -lm
In file included from
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/mts400/SensirionHumidityM.nc:93:
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:124:1: warning:
"SO_DEBUG" redefined
In file included from <command
line>:19:C:/PROGRA~1/UCB/cygwin/tmp/nesccppm000808:1791:1: warning: this is the
location
of the previous definition
In file included from
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/mts400/SensirionHumidityM.nc:93:
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h: In function
`init_debug':
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:15: `UBRR0H'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:15: (Each
undeclared identifier is reported only once
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:15: for each
function it appears in.)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:16: `UBRR0L'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:17: `U2X'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:17: `UCSR0A'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:18: `UCSZ1'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:18: `UCSZ0'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:18: `UCSR0C'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:19: `UDR0'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:20: `TXEN'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:20: `UCSR0B'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h: In function
`init_debug_mica2dot':
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:26: `UBRR0H'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:27: `UBRR0L'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:28: `UCSR0A'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:29: `UCSZ1'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:29: `UCSZ0'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:29: `UCSR0C'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:30: `UDR0'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:31: `TXEN'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:31: `UCSR0B'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h: In function
`UARTPutChar':
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:38: implicit
declaration of function `loop_until_bit_is_set'
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:38: `UCSR0A'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:38: `UDRE'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:39: implicit
declaration of function `outb'
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/interfaces/SODebug.h:39: `UDR0'
undeclared (first use in this function)
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/mts400/SensirionHumidityM.nc:
In function `SwitchI2W.setDone':
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/mts400/SensirionHumidityM.nc:191:
implicit declaration of function `bit_is_set'
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/mts400/SensirionHumidityM.nc:
In function `Timer.fired':
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/sensorboards/mts400/SensirionHumidityM.nc:223:
implicit declaration of function `bit_is_set'
make: *** [exe0] Interrupt
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help