This issue has to do with your TinyOS version. 1.1.7 uses a PageEEPROM interface defined in the /platform/mica directory, while future versions use a PageEEPROM interface defined in /tos/lib/Flash/AT45DB. The 1.1.7 PageEEPROM interface version defines these crc commands:
command result_t computeCrc(eeprompage_t page, eeprompageoffset_t offset,
eeprompageoffset_t n);
event result_t computeCrcDone(result_t result, uint16_t crc);
while future versions define an extra command, thanks to Johnathan Hui, that
allows a running CRC:
command result_t computeCrc(eeprompage_t page, eeprompageoffset_t offset,
eeprompageoffset_t n);
command result_t computeCrcContinue(eeprompage_t page, eeprompageoffset_t
offset,
eeprompageoffset_t n, uint16_t crc);
event result_t computeCrcDone(result_t result, uint16_t crc);
This can be fixed on your system, but you need to update your version of
PageEEPROMM module and PageEEPROM interface. I've attached the updated
versions of PageEEPROM files (with a slight fix to make it work with 1.1.7).
Put these files in your local compile directory (in either
/Blackbook5/apps/FlashBridge where you were compiling from, or in
/Blackbook5/media/AT45DB) so you don't overwrite the original 1.1.7
versions. When you compile, these files will override the files in the
/platform/mica directory. Incase updating the PageEEPROM component breaks
something, you can remove the latest version by deleting the files from the
local directory without breaking your TinyOS.
Hope that works. Let me know how it goes.
-David
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 5:22 AM
To: [email protected]
Subject: [Tinyos-help] Compile FlashBridge
Hi all,
I'm trying to compile FlashBridge
(contrib/rincon/apps/Blackbook5/apps/FlashBridge) for
mica2 but I get this error:
mkdir -p build/mica2
compiling FlashBridgeViewerTestC to a mica2 binary
ncc -o build/mica2/main.exe -Os -finline-limit=100000
-Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all
-target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb
-I../../media/AT45DB -I../../interfaces
-I../../../../tos/lib/State
-I../../../../tos/lib/Transceiver
-DIDENT_PROGRAM_NAME="FlashBrid"
-DIDENT_PROGRAM_NAME_BYTES="70,108,97,115,104,66,114,105,100,0"
-DIDENT_USER_HASH=0x211c9dd3L
-DIDENT_UNIX_TIME=0x44b3972dL FlashBridgeViewerTestC.nc
-lm
C:/PROGRA~1/TinyOS/cygwin/opt/tinyos-1.x/contrib/rincon/apps/blackbook5/medi
a/AT45DB/FlashBridgeM.nc:
In function `calculateParams':
C:/PROGRA~1/TinyOS/cygwin/opt/tinyos-1.x/contrib/rincon/apps/blackbook5/medi
a/AT45DB/FlashBridgeM.nc:371:
interface has no command or event named
`computeCrcContinue'
C:/PROGRA~1/TinyOS/cygwin/opt/tinyos-1.x/tos/platform/mica/PageEEPROMM.nc:
At top level:
C:/PROGRA~1/TinyOS/cygwin/opt/tinyos-1.x/tos/platform/mica/PageEEPROMM.nc:56
2:
`computeCrcContinue' is not in interface `PageEEPROM'
make: *** [exe0] Error
What I should do?
Thank you in advance.
I'm using TinyOS 1.1.7.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
PageEEPROMC.nc
Description: Binary data
PageEEPROM.nc
Description: Binary data
PageEEPROMM.nc
Description: Binary data
PageEEPROM.h
Description: Binary data
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
