Command line access to Kinetis flash via JTAG?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Command line access to Kinetis flash via JTAG?

681 Views
paulderocco
Contributor III

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.

Labels (1)
0 Kudos
Reply
1 Reply

462 Views
BlackNight
NXP Employee
NXP Employee

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

0 Kudos
Reply