I believe that the mica's use the same controller so defining this
data item for micaz should be ok...that said, I've never done it...
MS


Amit Satpathy wrote:
Hi.

I am currently trying to compile the High Frequency Sampling program from the xbow/apps folder for Micaz. I get the following error output:

---------- Capture Output ----------

"C:\Program Files\Crossbow\Crimson\IDE.bat" "C:\tinyos\cygwin\opt\tinyos-1.x\contrib\xbow\apps\HighFrequencySampling" "c:\tinyos\cygwin\bin" "make micaz"

#############################

Command:   make micaz

Cygwin:    c:\tinyos\cygwin\bin

Directory: C:\tinyos\cygwin\opt\tinyos-1.x\contrib\xbow\apps\HighFrequencySampling

Directory: /opt/tinyos-1.x/contrib/xbow/apps/HighFrequencySampling

#############################

mkdir -p build/micaz

    compiling HFS to a micaz binary

ncc -o build/micaz/main.exe -Os -I%T/../contrib/xbow/tos/interfaces -I%T/../contrib/xbow/tos/system -I%T/../contrib/xbow/tos/platform/micaz -I%T/../contrib/xbow/tos/lib -I%T/../contrib/xbow/tos/sensorboards/micasb -finline-limit=100000 -I%T/lib/Deluge -I%T/lib/Deluge/TOSBoot/include -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x05 -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb -DCC1K_DEFAULT_FREQ=RADIO_433BAND_CHANNEL_00 -DRADIO_XMIT_POWER=0x09 -DCC2420_TXPOWER=TXPOWER_M10DBM -DCC2420_DEF_CHANNEL=26 -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\"HFS\" -DIDENT_USER_ID=\"Administrator\" -DIDENT_HOSTNAME=\"AMP01\" -DIDENT_USER_HASH=0xef9f3689L -DIDENT_UNIX_TIME=0x440b9ba7L -DIDENT_UID_HASH=0xd3dbfdc8L -I/opt/tinyos-1.x/tos/lib/CC2420Radio HFS.nc -lm

MicroTimerM.nc: In function `MicroTimer.start':

MicroTimerM.nc:100: `CTC1' undeclared (first use in this function)

MicroTimerM.nc:100: (Each undeclared identifier is reported only once

MicroTimerM.nc:100: for each function it appears in.)

C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLTimer1M.nc: At top level:

C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLTimer1M.nc:170: redefinition of `__vector_12'

MicroTimerM.nc:125: previous declaration of `__vector_12'

make: *** [exe0] Error 1

Terminated with exit code 0

---------------------------------------------------------------------

As it can be seen, the MicroTimerM.nc has a function whereby CTC1 is declared. I have read through the program and found that the CTC1 is defined only for MICA2 or MICA2DOT. However, i'm trying to run this on MICAZs. Could anyone tell me what i need to change in the function so that i can successfully compile for MICAZs? I have included the modified makefile also below just in case i have pointed to the wrong folders for compilation.

MAKEFILE

---------------------------------------------------------------------------------------------------------------------------

# This application assumes a mica sensor board, so does not run on mica2dot

XBOWROOT=%T/../contrib/xbow/tos

PLATFORMS=mica mica2 micaz

COMPONENT=HFS

SENSORBOARD=micasb

PFLAGS= -I$(XBOWROOT)/interfaces -I$(XBOWROOT)/system -I$(XBOWROOT)/platform/$(PLATFORM) -I$(XBOWROOT)/lib -I$(XBOWROOT)/sensorboards/$(SENSORBOARD)

include ../MakeXbowlocal

include ${TOSROOT}/tools/make/Makerules

Thanks and regards.

Amit.


------------------------------------------------------------------------

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

Reply via email to