I'm reserving a sector of the upper flash block of a K64 for what amounts to a collection of environment variables, which represent configuration parameters that vary from unit to unit, and that should persist if the firmware is upgraded. I'd like to be able to write a Windows command line app that lets me read, modify and write this sector, without messing around with the IDE: just connect the JTAG, turn the unit on, and type the command. It's okay if it resets the processor.
Obviously, the flash programming is done in KDS via a set of scripts. Is there any way to write such scripts and get them executed outside the IDE? The IDE will be present on the machine, so the necessary executables will exist.
All the three debug connections in KDS (Segger, P&E and OpenOCD) come with standalone command line gdb servers and tools, so you could use those?
That way you can use it outside of the IDE.
P&E command line tool is located in (for Windows):
C:\Freescale\KDS_1.1.1\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_1.1.4.201409071615\win32
Segger tools are located in:
C:\Freescale\KDS_1.1.1\segger
OpenOCD tools are located in:
C:\Freescale\KDS_1.1.1\openocd
Basically they support the gdb commands, consult the documentation of each vendor/supplier.
I hope this helps,
Erich