Thank you for your advice !!! I installed the avr-toolset,and when I
run "make iris" in the Blink file,it finally works now,and I tested other
examples,they  works fine when I run the order"make iris",and in
 UDPecho and TCPecho fiels ,when I use ''make iris blip',it also can
be compiled successfully.Only one pity  is when I run "make iris blip" in
the
IPBaseStation,it pops out the following errors:


/opt/tinyos-2.1.1/apps/IPBaseStation# make iris blip
mkdir -p build/iris
    compiling BaseStationC to a iris binary
ncc -o build/iris/main.exe  -Os -DPACKET_LINK -DDEF_MEMCPY
-DENABLE_SPI0_DMA -DBLIP_MULTICAST -DCC2420_HW_ACKNOWLEDGEMENTS
-DTOSH_DATA_LENGTH=102 -I/opt/tinyos-2.1.1/tos/lib/net/
-I/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/
-I/opt/tinyos-2.1.1/support/sdk/c/blip/libtcp/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/interfaces/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/nwprog/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/shell/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/serial/
-I/opt/tinyos-2.1.1/tos/lib/net/blip/platform/
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpan.c
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/lib6lowpanFrag.c
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/in_cksum.c
/opt/tinyos-2.1.1/support/sdk/c/blip/lib6lowpan/ip_malloc.c
/opt/tinyos-2.1.1/tos/lib/net/blip/table.c -fnesc-separator=__ -Wall
-Wshadow -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c
-board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param
max-inline-insns-single=100000 -DNO_IP_MALLOC  -DIEEE154FRAMES_ENABLED
-DIDENT_APPNAME=\"BaseStationC\" -DIDENT_USERNAME=\"root\"
-DIDENT_HOSTNAME=\"pangpang-deskto\" -DIDENT_USERHASH=0x3e2e467dL
-DIDENT_TIMESTAMP=0x4f5d98edL -DIDENT_UIDHASH=0xbeddb7faL
-fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, components)'
-fnesc-dumpfile=build/iris/wiring-check.xml BaseStationC.nc -lm
BaseStationP.nc:68:20: error: CC2420.h: No such file or directory
In file included from BaseStationC.nc:100:
In component `BaseStationP':
BaseStationP.nc:98: interface CC2420Config not found
In file included from BaseStationC.nc:100:
BaseStationP.nc: In function `ConfigureReceive.receive':
BaseStationP.nc:413: interface has no command or event named `setChannel'
BaseStationP.nc:416: interface has no command or event named `sync'
BaseStationP.nc: At top level:
BaseStationP.nc:434: `syncDone' is not in interface `CC2420Config'
In file included from
/opt/tinyos-2.1.1/tos/lib/serial/Serial802_15_4C.nc:43,
                 from BaseStationC.nc:102:
In component `SerialPacketInfo802_15_4P':
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc: In function
`Info.offset':
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:38:
`cc2420_header_t' undeclared (first use in this function)
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:38: (Each
undeclared identifier is reported only once
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:38: for each
function it appears in.)
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc: In function
`Info.dataLinkLength':
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:41:
`cc2420_header_t' undeclared (first use in this function)
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:41:
`cc2420_footer_t' undeclared (first use in this function)
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc: In function
`Info.upperLength':
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:44:
`cc2420_header_t' undeclared (first use in this function)
/opt/tinyos-2.1.1/tos/lib/serial/SerialPacketInfo802_15_4P.nc:44:
`cc2420_footer_t' undeclared (first use in this function)
Reset.h:56:2: error: #error "Reset.h not defined/supported for your
platform, aborting..."
In component `BaseStationC':
BaseStationC.nc: At top level:
BaseStationC.nc:136: component CC2420ControlC not found
BaseStationC.nc:137: no match
make: *** [exe0] error  1


According to the information,I looked through the codes,I found the code in
the reset.h
doesn't even support the iris platform,you can have a look at the
code:
void resetMote()
{
#if defined(PLATFORM_MICA) ||
defined(PLATFORM_MICA2) || defined(PLATFORM_MICA2DOT) ||
defined(PLATFORM_MICAZ)
        cli();
      wdt_enable(0);
      while (1) {
          __asm__ __volatile__("nop" "\n\t" ::);
      }
#elif defined(PLATFORM_TELOS) || defined(PLATFORM_TELOSB) ||
defined(PLATFORM_EPIC)
        WDTCTL = 0;
#else
#error "Reset.h not defined/supported for your platform, aborting..."
#endif
}


Now,my question is where can I get the latest IPbaseStation code which can
fully support the iris platform.thank you very much for your  patience !
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to