tinyriscv-openocd/tcl
Christopher Kilgour aeb3c4f37e kinetis: update support for all program flash granularities
Updates the Kinetis NOR flash support to handle all known block and sector
sizes.  Previously only 2kiB sectors were hard-coded, now all four known
combinations non-volatile sector sizes are supported.

The premise of separating Kinetis Program Flash (PFLASH) from FlexNVM is
also introduced.  This means each "block" of flash (in Freescale terms) is
treated as a bank in OpenOCD.  Correspondingly, the existing board
configuration for the TWR-K60M512 eval system is updated to recognize two
banks instead of one.

A board config for the TWR-K60F120M is also added.

Bank and sector erase and programming has been checked with both of the
mentioned eval boards.

Change-Id: Iae2d10ebf8f548d0a3698df5430bbbe1ccadc58a
Signed-off-by: Christopher Kilgour <techie@whiterocker.com>
Reviewed-on: http://openocd.zylin.com/663
Tested-by: jenkins
Reviewed-by: Mathias Küster <kesmtp@freenet.de>
Reviewed-by: Jan Dakinevich <jan.dakinevich@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2012-06-26 11:53:37 +00:00
..
board kinetis: update support for all program flash granularities 2012-06-26 11:53:37 +00:00
chip config: fix typo in at91 config 2012-03-06 10:30:54 +00:00
cpld Xilinx xcr3256.cfg basic config script 2009-10-12 15:12:35 +02:00
cpu/arm Move TCL script files -- Step 2 of 2: 2009-05-27 06:49:24 +00:00
interface jtag: add opendous and estick support 2012-05-14 09:41:49 +00:00
target lpc1768.cfg pulled out constants from flash init as variables 2012-06-26 10:02:03 +00:00
test TCL scripts: replace "puts" with "echo" 2010-11-09 08:12:51 +01:00
bitsbytes.tcl TCL scripts: replace "puts" with "echo" 2010-11-09 08:12:51 +01:00
mem_helper.tcl TCL scripts: fix ocd_mem2array/mem2array 2010-09-28 10:44:50 +02:00
memory.tcl tcl: remove silly ocd_ prefix to array2mem and mem2array 2010-08-11 17:24:55 +02:00
mmr_helpers.tcl TCL scripts: replace "puts" with "echo" 2010-11-09 08:12:51 +01:00