diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2014-09-08 10:34:10 +0200 |
---|---|---|
committer | Paul Fertser <fercerpav@gmail.com> | 2015-02-11 14:59:55 +0000 |
commit | 1d7176f50bc7d5971a82977ac2baa79eef521c21 (patch) | |
tree | 44dba772ac05d27cb97b36ce9f2fe5c41a557e09 /doc | |
parent | a9c90a0f8f9080d185233e4037e9c88075366fcb (diff) |
psoc4: support for Cypress PSoC 41xx/42xx family
New NOR flash driver was derived from stm32lx.
Procedure ocd_process_reset_inner is overriden in psoc4.cfg
to handle reset halt and system ROM peculiarities.
Change-Id: Ib835324412d106ad749e1351a8e18e6be34ca500
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/2282
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/openocd.texi | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi index 18e18b98..95c20541 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -5440,6 +5440,40 @@ This will remove any Code Protection. @end deffn @end deffn +@deffn {Flash Driver} psoc4 +All members of the PSoC 41xx/42xx microcontroller family from Cypress +include internal flash and use ARM Cortex M0 cores. +The driver automatically recognizes a number of these chips using +the chip identification register, and autoconfigures itself. + +Note: Erased internal flash reads as 00. +System ROM of PSoC 4 does not implement erase of a flash sector. + +@example +flash bank $_FLASHNAME psoc4 0 0 0 0 $_TARGETNAME +@end example + +psoc4-specific commands +@deffn Command {psoc4 flash_autoerase} num (on|off) +Enables or disables autoerase mode for a flash bank. + +If flash_autoerase is off, use mass_erase before flash programming. +Flash erase command fails if region to erase is not whole flash memory. + +If flash_autoerase is on, a sector is both erased and programmed in one +system ROM call. Flash erase command is ignored. +This mode is suitable for gdb load. + +The @var{num} parameter is a value shown by @command{flash banks}. +@end deffn + +@deffn Command {psoc4 mass_erase} num +Erases the contents of the flash memory, protection and security lock. + +The @var{num} parameter is a value shown by @command{flash banks}. +@end deffn +@end deffn + @deffn {Flash Driver} stellaris All members of the Stellaris LM3Sxxx microcontroller family from Texas Instruments |