When I'm trying to build this code under tinyos-2.0.2-2 for mica2 or micaz, I get errors because of on the i2c_flags_t declaration in I2CPacket in the tos/interfaces/I2CPacket.nc Can someone point out where nesc is supposed to be picking up the definition of that data type? Thanks, Eric
On Wed, Jul 30, 2008 at 11:51 AM, Charles Elliott <[EMAIL PROTECTED]> wrote: > Hi Chris > > I've been trying to get a ADC driver working based on your DigOutput code. > I've attached my code. > > This is the error I get when I'm trying to compile: > > $ make mica2 > mkdir -p build/mica2 > compiling Test2AppC to a mica2 binary > ncc -o build/mica2/main.exe -Os -Wall -Wshadow -Wnesc-all -target=mica2 > -fnesc- > cfile=build/mica2/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 > -finline-limit > =100000 -DIDENT_APPNAME=\"Test2AppC\" -DIDENT_USERNAME=\"ani\" > -DIDENT_HOSTNAME= > \"DOAD06-89CD7F8F\" -DIDENT_USERHASH=0x9a391b60L > -DIDENT_TIMESTAMP=0x48908a44L - > DIDENT_UIDHASH=0x02b4a7f2L -fnesc-dump=wiring > -fnesc-dump='interfaces(!abstract( > ))' -fnesc-dump='referenced(interfacedefs, components)' > -fnesc-dumpfile=build/mi > ca2/wiring-check.xml Test2AppC.nc -lm > Exception in thread "main" > com.sun.org.apache.xerces.internal.impl.io.MalformedB > yteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. > at > com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unk > nown Source) > at > com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown So > urce) > at > com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(Unk > nown Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > l$FragmentContentDriver.next(Unknown Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U > nknown Source) > at > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next > (Unknown Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp > l.scanDocument(Unknown Source) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U > nknown Source) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U > nknown Source) > at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So > urce) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un > known Source) > at net.tinyos.nesc.dump.NDReader.parse(NDReader.java:97) > at net.tinyos.nesc.wiring.WiringCheck.main(WiringCheck.java:147) > make: *** [exe0] Error 1 > > I get the same error if I "make iris". > > Any ideas? > > Thanks > Charles > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
