Re: wp34s library tool Message #2 Posted by Marcus von Cube, Germany on 5 July 2013, 4:02 a.m., in response to message #1 by Andrew Nikitin
Andrew, its a bit more complicated then I'd like but it is Neil's tool and he decided to do it the way it is now.
To update the wp34s-lib.dat file use the following syntax:
wp34s_lib.pl your_source.wp34s ... -ilib wp34s-lib.dat -olib wp34s-lib.dat
Multiple source files are possible. The program will be merged into the existing library. Without -ilib libfile the library would be created from scratch. If I read the manual correctly -olib libfile can be replaced by -f (force overwrite). -olib newlib can be used to leave the original untouched and create a new lib instead.
To update the state file instead use the same syntax but add the -state switch and name the state file in -ilib and -olib. You cannot create a valid state file from scratch, you'll need one created by the emulator.
The manual Neil wrote is worth a read!
It's easiest to create a program with Neil's tools, add it to a library (or state file), debug it on the emulator and then send it to the device with the I/O commands.
|