tinyriscv-openocd/tcl
Jeff Ciesielski 33b048d456 flash: New driver for XMC4xxx microcontroller family
This is a complete flash driver for the Infineon XMC4xxx family of
microcontrollers, based on the TMS570 driver by Andrey Yurovsky.
The driver attempts to discover the particular variant of MCU via a
combination of the SCU register (to determine if this is indeed an
XMC4xxx part) and the FLASH0_ID register (to determine the variant).
If this fails, the driver will not load.
The driver has been added to the README and documentation.

Tests:
* Hardware: XMC4500 (XMC4500_relax), XMC4200 (XMC4200 enterprise)
* SWD + JTAG
* Binary: 144k, 1M

Note:
* Flash protect only partly tested. These parts only allow the flash
  protection registers (UCB) to be written 4 times total, and my devkits
  have run out of uses (more on the way)

Future Work:
* User 1/2(permalock) locking support via custom command
* In-memory flash loader bootstrap (flashing is rather slow...)

Change-Id: I1d3345d5255d8de8dc4175cf987eb4a037a8cf7f
Signed-off-by: Jeff Ciesielski <jeffciesielski@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-on: http://openocd.zylin.com/2488
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2015-11-11 12:08:35 +00:00
..
board tcl/board: add Atmel SAM V71 Xplained Ultra 2015-11-10 20:27:00 +00:00
chip Fix a typo. 2013-07-07 13:00:59 +00:00
cpld tcl: Support for reading "Device DNA" from Spartan 6 devices. 2015-10-21 09:11:48 +01:00
cpu/arm Move TCL script files -- Step 2 of 2: 2009-05-27 06:49:24 +00:00
interface tcl: Setting lowlevel driver for ixo-usb-jtag 2015-10-21 09:10:56 +01:00
target flash: New driver for XMC4xxx microcontroller family 2015-11-11 12:08:35 +00:00
test TCL scripts: replace "puts" with "echo" 2010-11-09 08:12:51 +01:00
tools tcl: add TP-LINK TL-MR3020 to the firmware recovery script 2015-02-11 15:30:28 +00: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