hi everyone,
I was looking into writing a time synchronization routine. I am using TinyOS
2.1.0 and TOSSIM. The problem I am facing is when compiling with the sim
option, the compiler doesn't find some header file, which actually can be found
in some subfolder of the TinyOS directory.
/opt/tinyos-2.1.0/tos/platforms/iris/TimeSyncMessageC.nc:24:22: error:
HplRF230.h: No such file or directory
Right.. i forgot to mention, i want to use the iris nodes. Anyway when adding
the directory(/opt/tinyos-2.1.0/tos/platforms/iris/chips/rf230) explicitly
he cant find the rf230.h. So i added the tos/chips/rf230 directory explicitly.
This leads to a lengthy list of errors, beginning with:
In file included from
/opt/tinyos-2.1.0/tos/platforms/iris/TimeSyncMessageC.nc:24,
from src/ProgC.nc:6:
/opt/tinyos-2.1.0/tos/platforms/iris/chips/rf230/HplRF230.h:53: syntax error
before `TRF230'
In file included from src/ProgC.nc:6:
In component `TimeSyncMessageC':
/opt/tinyos-2.1.0/tos/platforms/iris/TimeSyncMessageC.nc:37: syntax error
before `TRF230'
In file included from src/ProgC.nc:6:
/opt/tinyos-2.1.0/tos/platforms/iris/TimeSyncMessageC.nc:38: syntax error
before `TRF230'
In file included from
/opt/tinyos-2.1.0/tos/platforms/iris/TimeSyncMessageC.nc:47,
from src/ProgC.nc:6:
In component `RF230TimeSyncMessageC':
/opt/tinyos-2.1.0/tos/chips/rf230/RF230TimeSyncMessageC.nc:39: syntax error
before `TRF230'
/opt/tinyos-2.1.0/tos/chips/rf230/RF230TimeSyncMessageC.nc:40: syntax error
before `TRF230'
In file included from
/opt/tinyos-2.1.0/tos/chips/rf230/RF230TimeSyncMessageC.nc:49,
from
/opt/tinyos-2.1.0/tos/platforms/iris/TimeSyncMessageC.nc:47,
from src/ProgC.nc:6:
In component `RF230TimeSyncMessageP':
/opt/tinyos-2.1.0/tos/chips/rf230/RF230TimeSyncMessageP.nc:31: syntax error
before `TRF230'
/opt/tinyos-2.1.0/tos/chips/rf230/RF230TimeSyncMessageP.nc:35: syntax error
before `TRF230'
In file included from
/opt/tinyos-2.1.0/tos/chips/rf230/RF230TimeSyncMessageC.nc:49,
from
/opt/tinyos-2.1.0/tos/platforms/iris/TimeSyncMessageC.nc:47,
from src/ProgC.nc:6:
/opt/tinyos-2.1.0/tos/chips/rf230/RF230TimeSyncMessageP.nc:44: syntax error
before `TRF230'
/opt/tinyos-2.1.0/tos/chips/rf230/RF230TimeSyncMessageP.nc:47: syntax error
before `TRF230'
In file included from
/opt/tinyos-2.1.0/tos/chips/rf230/RF230TimeSyncMessageC.nc:49,
from
/opt/tinyos-2.1.0/tos/platforms/iris/TimeSyncMessageC.nc:47,
from src/ProgC.nc:6:
/opt/tinyos-2.1.0/tos/chips/rf230/RF230TimeSyncMessageP.nc:92: unknown
interface `TimeSyncAMSendRadio'
The funny part is, when I don't use the sim option it compiles without any
problems.
The Code is very very simple, as to exclude any other influences.
here my configuration:
configuration ProgC{
}
implementation{
components progP;
components TimeSyncMessageC;
progP.SplitControl -> TimeSyncMessageC;
}
and the module:
module progP{
uses interface SplitControl;
}
implementation{
event void SplitControl.stopDone(error_t error){
}
event void SplitControl.startDone(error_t error){
}
}
Has anyone an idea what i need to do, to be able to simulate with
TimeSyncMessageC?
Greetings,
Sebastian.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help