hello guys

i get errors trying to compile my flash code (a simple, single read, write,
and verify operation using BlockStorage) on Meshbean platform.

tos-storage-stm25p is executed when i compile for telos...not for meshbean.
i executed it manually to create my StorageVolumes.h file. however, errors
are the same when i compile. seems that the compiler doesn't seem to locate
my manually-created StorageVolumes.h file.

any tip is highly appreciated.

error:
----------------------------------------------------------------------
[xubuntos@xubuntos-tinyos:~/tinyos-2.x/apps/Zigbit/Flash M25P80/src]$ ll
total 20
-rw-r--r-- 1 xubuntos xubuntos  586 2011-02-03 17:00 FlashAppC.nc
-rw-r--r-- 1 xubuntos xubuntos 1652 2011-02-03 16:49 FlashC.nc
-rw-r--r-- 1 xubuntos xubuntos  113 2010-12-07 00:18 Makefile
-rw-r--r-- 1 xubuntos xubuntos  965 2010-11-08 16:06 RadioOnOff.h
-rw-r--r-- 1 xubuntos xubuntos  156 2011-02-09 11:34 volumes-stm25p.xml

[xubuntos@xubuntos-tinyos:~/tinyos-2.x/apps/Zigbit/Flash M25P80/src]$ make
telosb
mkdir -p build/telosb
tos-storage-stm25p  /home/xubuntos/tinyos-2.x/tos/platforms/telosb
<volumes-stm25p.xml >build/telosb/StorageVolumes.h || rm -f
build/telosb/StorageVolumes.h
    compiling FlashAppC to a telosb binary
ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul -fnesc-separator=__
-Wall -Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c
-board= -DDEFINED_TOS_AM_GROUP=0x22 -Ibuild/telosb
-DIDENT_APPNAME=\"FlashAppC\" -DIDENT_USERNAME=\"xubuntos\"
-DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USERHASH=0x00f95284L
-DIDENT_TIMESTAMP=0x4d650f1fL -DIDENT_UIDHASH=0x4ca76c08L
-DRF230_DEF_CHANNEL=21  FlashAppC.nc -lm
    compiled FlashAppC to build/telosb/main.exe
            6470 bytes in ROM
             683 bytes in RAM
msp430-objcopy --output-target=ihex build/telosb/main.exe
build/telosb/main.ihex
    writing TOS image

[xubuntos@xubuntos-tinyos:~/tinyos-2.x/apps/Zigbit/Flash M25P80/src]$ make
meshbean
mkdir -p build/meshbean
    compiling FlashAppC to a meshbean binary
ncc -o build/meshbean/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow
-Wnesc-all -target=meshbean -fnesc-cfile=build/meshbean/app.c -board=
-DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
-DIDENT_APPNAME=\"FlashAppC\" -DIDENT_USERNAME=\"xubuntos\"
-DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USERHASH=0x00f95284L
-DIDENT_TIMESTAMP=0x4d650f29L -DIDENT_UIDHASH=0x4af25e1fL
-DRF230_DEF_CHANNEL=21 -fnesc-dump=wiring
-fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs,
components)' -fnesc-dumpfile=build/meshbean/wiring-check.xml FlashAppC.nc
-lm
FlashAppC.nc:11:28: error: StorageVolumes.h: No such file or directory
In component `FlashAppC':
FlashAppC.nc:18: `VOLUME_SECTORONE' undeclared here (not in a function)
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc:38:28: error:
StorageVolumes.h: No such file or directory
In file included from
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorC.nc:52,
                 from
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/BlockStorageC.nc:62,
                 from FlashAppC.nc:18:
In component `Stm25pSectorP':
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc: In function
`physicalAddr':
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc:154:
`STM25P_VMAP' undeclared (first use in this function)
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc:154: (Each
undeclared identifier is reported only once
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc:154: for each
function it appears in.)
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc:154: subscripted
value is neither array nor pointer
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc: In function
`Sector.getNumSectors':
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc:168:
`STM25P_VMAP' undeclared (first use in this function)
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc:168: subscripted
value is neither array nor pointer
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc: In function
`Sector.erase':
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc:221:
`STM25P_VMAP' undeclared (first use in this function)
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc:221: subscripted
value is neither array nor pointer
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc: In function
`Spi.sectorEraseDone':
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc:228:
`STM25P_VMAP' undeclared (first use in this function)
/home/xubuntos/tinyos-2.x/tos/chips/stm25p/Stm25pSectorP.nc:228: subscripted
value is neither array nor pointer
make: *** [exe0] Error 1
----------------------------------------------------------------------

*CL*
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to