Brought to
you by
HOME
GETTING STARTED
FAQs
ABOUT
CONTACT
API DOCUMENTATION
|
Writing your own Java Applications for TINI
-
You need to compile your application using the TINI-specific version
of Java class libraries. You do this by specifying the option
-bootclasspath %TINI_HOME%\bin\tiniclasses.jar on your javac
command line.
-
You need to bundle all the classes used by your application into one
file using the command:
java TINIConvertor -classpath %TINI_HOME%\bin\tini.jar
-f [classes] -o MyApp.tini
-d %TINI_HOME%\bin\tini.db
where [classes] is the name of a class file or a directory containing all
your class files and MyApp.tini is the output.
-
Now transfer this file MyApp.tini to the TINI board and run it:
java MyApp.tini &
-
You may also load your own application as the bootstrap image, so
it starts up automatically in place of slush. To do this you need
to convert your application to a .hex file:
java com.dalsemi.tiniconvertor.BinToHex -input MyApp.tini \
-output MyApp -startBank 7 -Hex386
then load that .hex file the into bank 7 as described in
Loading the firmware.
-
For further information on how to run code in the TINI Board, check the file
%TINI_HOME%\docs\Building_Applications.txt.
|