Hi,
It is a lot of work to develop programming tool by itself ...
We (Signum Systems) provide a batch mode flasher tool which supports Kinetis CPUs.
All you need to do is provide an image to be programmed and JTAG connectivity to the board and the flasher does the rest.
Here is example of programming 64K bytes test file (with erase and verification):
C:\Signum\Flasher\TestKinetis>..\SigFlashCmd -cpu Cortex-M4 -flash Kinetis -dump -erase
-program ..\testdata\64k.bin -offset 0x10000 -verify -time
SigFlashCmd Version 1.19 (C) Signum Systems Corp. 2006-2011
..\SigFlashCmd -cpu Cortex-M4 -flash Kinetis -dump -erase -program ..\testdata\64k.bin -offset 0x10000 -verify -time
Starting ...
OK - Connected to the emulator ...
OK - Connected to the CPU ...
Geometry:
bank #0 addr=0x00000000 size=256KB (128*2KB)
Erasing sectors 0x00010000 .. 0x0001FFFF (64KB) ...
TIME: Erase 0.37 sec
Programming 0x00010000 .. 0x0001FFFF (64KB) ...
TIME: Program 0.65 sec (perf = 97.74 KB/sec)
Verifying 0x00010000 .. 0x0001FFFF (64KB) ...
TIME: Verify 0.33 sec (perf = 196.45 KB/sec)
OK - Flash programming finished ...
OK - Exiting ...
OK - Done
C:\Signum\Flasher\TestKinetis>
As you can see it takes ~1.5 seconds to program 64K bytes of data (with ease and verification).
Robert