Command line NewtonScript compiler and packager
- Install CMake and cDCL, if you haven't already
git clone --recursive git@github.com:ekoeppen/tntk.git
cd tntk
cmake -S . -B build
cmake --build build
sudo cmake --install build
You will also need the NTK Platform Files.
tntk [options] file
-c compile-only
-d dump contents of a .pkg file
-l log file name
-p serial port device path
-P platform files search path
-s serial port speed
-t tcp connection
A sample project is included, which can be compiled as follows:
- Update MiniNewtApp.nprj with the path to your platform file
- Run
tntk -c MiniNewtApp.nprj
For further examples of usage, see the following articles:
tntk can process NTCK files, and add relocation data as needed to the output package. For this to work, the binary module must have been linked with a base address larger than zero, e.g. 0x10000 is a good value, and cDCL version 1.0 must be used to convert the ELF file to an NTCK module.