RE: I2CPort not supported with TiniOS 1.12?
"Kelly Smith" <[email protected]> Thu, 20 May 2004 07:30:15 -0700
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Dear Joel - Re: "tell me how to put this into a tiniant xml file that would
be great!"
An EXAMPLE ONLY, since your TINI build environment will probably be
different for your PC's setup ('paths' 'and stuff), but;
You can setup your properties in the build.xml, something like this (look
for 'modules.jar'):
<property name="tini.dir" value="c:/tini/tini1.12"/>
<property name="tini.bin.dir" value="${tini.dir}/bin"/>
<property name="tini.db" value="${tini.bin.dir}/tini.db"/>
<property name="tini.classes" value="${tini.bin.dir}/tiniclasses.jar"/>
<property name="tini.containers.jar"
value="${tini.bin.dir}/owapi_dependencies_TINI.jar"/>
<property name="tini.modules.jar" value="${tini.bin.dir}/modules.jar"/>
<property name="tini.containers.dep"
value="${tini.bin.dir}/owapi_dep.txt"/>
<property name="tini.jar" value="${tini.bin.dir}/tini.jar"/>
<property name="tini.build.dir" value="${basedir}/tini"/>
<property name="tini.deprecation.flag" value="on"/>
<property name="tini.optimize.flag" value="off"/>
<property name="tini.debug.flag" value="off"/>
<property name="tini.nowarn.flag" value="off"/>
<property name="tini.target.flag" value="1.1"/>
...and then, in the TINI convertor section, something like this (look for
'modules.jar'):
<target name="tini.convert"
description="Convert to a .tini file"
depends="tini.compile">
<tini classpath="${tini.jar}"
outputfile="${app.file}"
database="${tini.db}"
mainclass="${main.class}"
dependpath="${tini.containers.jar};${tini.modules.jar}"
dependencyfiles="${tini.containers.dep}"
depends="proxy;HTTP"
force="no"
excludeReflectionInfo="no"
convertpath="${tini.build.dir}"/>
</target>
For me in this example, the " depends="proxy;HTTP"" is the "-add proxy,
and -add HTTP" that would be in a command line...
I hope this helps! Kelly Smith
-----Original Message-----
From: Joel Rowley [mailto:[email protected]]
Sent: Wednesday, May 19, 2004 7:13 PM
To: 'Kelly Smith'; tini-6tN4nzCoH/[email protected]
Subject: RE: [TINI]I2CPort not supported with TiniOS 1.12?
Thanks for the help! That was the key. I tried doing "-f .\bin;
D:\TINI\SDK\tini1.12\bin\modules.jar" but that did not work. You have to
have multiple "-f" switches in order to work. So, this was my final line:
C:\j2sdk1.4.2_04\bin\java.exe -classpath D:\TINI\SDK\tini1.12\bin\tini.jar;
TINIConvertor -i -f .\bin -f D:\TINI\SDK\tini1.12\bin\modules.jar -o
Hvac.tini -d D:\TINI\SDK\tini1.12\bin\tini.db
Thanks for all the help! This way works, but if anyone would like to tell
me how to put this into a tiniant xml file that would be great! I have ant
compiling the .java files to .class files, but I can't get tiniant to output
a .tini file. I think it's because I don't know where to add the
Modules.jar. This is what I have now for the tiniant part (after I compiled
it to .class files in the ${tini.build.dir} folder):
<tini
outputfile="Hvac.tini"
database="${tini.db}"
dependencyfiles="${owapi_dep.txt},${dependency.files}"
depends="${dependency.groups}"
dependpath="${tini.onewire.jar}:${dependency.classpath}"
classpath="${tini.jar}"
force="yes"
verbose="${tini.debug}"
>
<convert dir="${tini.build.dir}"/>
</tini>
Thanks!
Joel Rowley
-----Original Message-----
From: Kelly Smith [mailto:[email protected]]
Sent: Wednesday, May 19, 2004 6:57 PM
To: Joel Rowley; tini-6tN4nzCoH/[email protected]
Subject: RE: [TINI]I2CPort not supported with TiniOS 1.12?
Dear Joel - Re: "Could not find the class com/dalsemi/system/I2CPort"
Add this to your TINIConvertor line:
-f D:\TINI\SDK\tini1.12\bin\modules.jar
Best regards, Kelly Smith
-----Original Message-----
From: tini-admin-6tN4nzCoH/[email protected] [mailto:tini-admin-6tN4nzCoH/[email protected]]On Behalf Of
Joel Rowley
Sent: Wednesday, May 19, 2004 2:18 PM
To: tini-6tN4nzCoH/[email protected]
Subject: [TINI]I2CPort not supported with TiniOS 1.12?
Hello List,
I am in the process of upgrading my Tini program from TiniOS 1.02e to TiniOS
1.12. My problem (I think) is that they moved the I2CPort.class file to the
${tinisdk}/bin/Modules.jar file instead of where it used to be in the
tiniclasses.jar file. I put the ${tinisdk}/bin/Modules.jar file in my javac
classpath and it compiles my .java file to classes. My problem comes in
when I try to run TINIConvertor. This is the line that I use when I run
TINIConvertor:
C:\j2sdk1.4.2_04\bin\java.exe -classpath D:\TINI\SDK\tini1.12\bin\tini.jar;
TINIConvertor -i -f .\bin -o Hvac.tini -d D:\TINI\SDK\tini1.12\bin\tini.db
When I run that line, this is what I get:
TINIConvertor (KLA)
Version 1.31 for TINI 1.1
Built on or around August 27, 2003
Copyright (C) 1996 - 2003 Dallas Semiconductor Corporation.
Could not find the class com/dalsemi/system/I2CPort
Could not finish loading: java.lang.ClassNotFoundException: Could not find
the class com/dalsemi/system/I2CPort
Exception caught: java.lang.RuntimeException: Could not finish loading:
java.lang.ClassNotFoundException: Could not find the class
com/dalsemi/system/I2CPort
java.lang.RuntimeException: Could not finish loading:
java.lang.ClassNotFoundException: Could not find the class
com/dalsemi/system/I2CPort
at
com.dalsemi.system.classloader.TINIClassLoader.beginLoading(TINIClassLoader.
java:142)
at com.dalsemi.TINIConvertor.go(TINIConvertor.java:725)
at com.dalsemi.TINIConvertor.main(TINIConvertor.java:324)
at TINIConvertor.main(TINIConvertor.java:16)
Exception in thread "main" java.lang.RuntimeException: Could not finish
loading: java.lang.ClassNotFoundException: Could not find the class
com/dalsemi/system/I2CPort
at
com.dalsemi.system.classloader.TINIClassLoader.beginLoading(TINIClassLoader.
java:142)
at com.dalsemi.TINIConvertor.go(TINIConvertor.java:725)
at com.dalsemi.TINIConvertor.main(TINIConvertor.java:324)
at TINIConvertor.main(TINIConvertor.java:16)
Is there something that I am forgetting? I don't know for sure, but I think
they forgot to add I2CPort support into the tini.db file. If anyone has any
idea what the problem is, could you please reply back?
Thanks so much!
Joel Rowley
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini