riscv-openocd/tcl/board
Olivier Schonken d1cd97777b topic: Added support for the SAM4S variants
Atmel introduced 6 new Cortex-M4 processors on 2011-10-26
SAM4S16C - 1024KB flash LQFP100/BGA100
SAM4S16B - 1024KB flash LQFP64/QFN64
SAM4S16A - 1024KB flash LQFP48/QFN48
SAM4S8C - 512KB flash LQFP100/BGA100
SAM4S8B - 512KB flash LQFP64/QFN64
SAM4S8A - 512KB flash LQFP48/QFN48

The SAM4S processors still suffer from the "6 waitstates needed
to program device" errata.

Other relevant changes are:
1. Address of flash memory starts at 0x400000.
2. EWP (Erase page and write page) only works for the first two 8KB "sectors"
3. Because of the EWP not working for all the sectors, normal page writes have
to be used.  The default_flash_blank_check is used to check if lockregions
should be erased.
4. The EA (Erase All) command takes 7.3s to complete. (Previous timeout was
500 ms)
5. There are 128 lockable regions of 8KB each.

Implemented default blank checking, and page erase for load_image scenarios.
This is to compensate for the EWP flash commands only working on the
first 2 8KB sectors.

Change-Id: I7c5a52b177f7849a107611fd0f635fc416cfb724
Signed-off-by: Olivier Schonken <olivier.schonken@gmail.com>
Reviewed-on: http://openocd.zylin.com/528
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2012-04-26 10:58:14 +00:00
..
actux3.cfg actux3.cfg: add function to setup for u-boot debugging 2011-01-02 21:17:57 +01:00
am3517evm.cfg
arm_evaluator7t.cfg
at91cap7a-stk-sdram.cfg scripts: use adapter_khz not deprecated jtag_khz 2011-11-18 22:14:55 +00:00
at91eb40a.cfg flash: retire unused eCos flash driver 2012-03-11 21:14:21 +00:00
at91rm9200-dk.cfg
at91rm9200-ek.cfg at91rm9200-ek: add low default communication speed 2011-05-05 15:43:37 +02:00
at91sam9g20-ek.cfg at91sam9: factorise cpu support 2011-03-03 22:49:46 +01:00
at91sam9261-ek.cfg add at91sam9261-ek support 2011-04-09 10:14:46 +02:00
at91sam9263-ek.cfg add at91sam9263-ek support 2011-04-09 10:16:28 +02:00
atmel_at91sam7s-ek.cfg
atmel_at91sam9rl-ek.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
atmel_at91sam9260-ek.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
atmel_sam3n_ek.cfg Add configuration for ATMEL SAM3N-EK board. 2011-10-26 20:31:45 +00:00
atmel_sam3s_ek.cfg
atmel_sam3u_ek.cfg
atmel_sam3x_ek.cfg Added tcl config scripts for SAM3A/X targets and devboard 2012-03-30 15:56:19 +00:00
atmel_sam4s_ek.cfg topic: Added support for the SAM4S variants 2012-04-26 10:58:14 +00:00
balloon3-cpu.cfg
colibri.cfg
crossbow_tech_imote2.cfg
csb337.cfg
csb732.cfg
da850evm.cfg
digi_connectcore_wi-9c.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
diolan_lpc4350-db1.cfg Add new configuration files for the Diolan LPC-4350-DB1 development 2012-03-06 13:31:59 +00:00
dm355evm.cfg
dm365evm.cfg
dm6446evm.cfg
efikamx.cfg
eir.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
ek-lm3s9b9x.cfg luminary: remove unused config cmds. 2010-12-03 09:02:08 +00:00
ek-lm3s811-revb.cfg cfg: change default stellaris working area 2012-02-16 08:57:22 +00:00
ek-lm3s811.cfg cfg: change default stellaris working area 2012-02-16 08:57:22 +00:00
ek-lm3s1968.cfg cfg: change default stellaris working area 2012-02-16 08:57:22 +00:00
ek-lm3s3748.cfg luminary: remove unused config cmds. 2010-12-03 09:02:08 +00:00
ek-lm3s6965.cfg luminary: remove unused config cmds. 2010-12-03 09:02:08 +00:00
ek-lm4f232.cfg cfg: add Stellaris LM4F232 Evaluation Kit config 2011-11-02 23:32:03 +00:00
embedded-artists_lpc2478-32.cfg Create a init_board procedure for the ea dev board. 2012-03-30 15:53:06 +00:00
ethernut3.cfg
glyn_tonga2.cfg Glyn Tonga2: Faster JTAG speed after CPU/RAM init. 2012-04-13 08:57:29 +00:00
hammer.cfg
hilscher_nxdb500sys.cfg scripts: use adapter_nsrst_delay not deprecated jtag_nsrst_delay 2012-03-30 16:01:51 +00:00
hilscher_nxeb500hmi.cfg scripts: use adapter_nsrst_delay not deprecated jtag_nsrst_delay 2012-03-30 16:01:51 +00:00
hilscher_nxhx10.cfg scripts: use adapter_nsrst_delay not deprecated jtag_nsrst_delay 2012-03-30 16:01:51 +00:00
hilscher_nxhx50.cfg scripts: use adapter_nsrst_delay not deprecated jtag_nsrst_delay 2012-03-30 16:01:51 +00:00
hilscher_nxhx500.cfg scripts: use adapter_nsrst_delay not deprecated jtag_nsrst_delay 2012-03-30 16:01:51 +00:00
hilscher_nxsb100.cfg scripts: use adapter_nsrst_delay not deprecated jtag_nsrst_delay 2012-03-30 16:01:51 +00:00
hitex_lpc2929.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
hitex_stm32-performancestick.cfg cfg: update scripts to use new stm32 driver names 2011-07-28 11:45:09 +01:00
hitex_str9-comstick.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
iar_lpc1768.cfg
iar_str912_sk.cfg
icnova_imx53_sodimm.cfg cfg: add icnova_imx53_sodimm board config 2012-04-10 12:25:52 +00:00
icnova_sam9g45_sodimm.cfg add icnova_sam9g45_sodimm support 2012-02-13 12:04:00 +00:00
imx27ads.cfg
imx27lnst.cfg
imx28evk.cfg topic: Add support for i.MX28EVK 2012-02-13 12:03:26 +00:00
imx31pdk.cfg
imx35pdk.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
imx53loco.cfg cfg: add imx53loco board config 2012-04-10 12:24:00 +00:00
keil_mcb1700.cfg
keil_mcb2140.cfg
kwikstik.cfg add Freescale Kinetis K40 devices and Kwikstik eval board 2011-10-23 13:23:49 +00:00
linksys_nslu2.cfg
lisa-l.cfg config: do not use deprecated stm32.cfg 2011-11-17 17:30:03 +00:00
logicpd_imx27.cfg
lubbock.cfg
mcb1700.cfg scripts: use adapter_khz not deprecated jtag_khz 2011-11-18 22:14:55 +00:00
microchip_explorer16.cfg
mini2440.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
mini6410.cfg Board definition for mini6410/tiny6410 (ARM1176) 2011-05-29 23:42:09 +02:00
olimex_LPC2378STK.cfg
olimex_lpc_h2148.cfg
olimex_sam7_ex256.cfg
olimex_sam9_l9260.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
olimex_stm32_h103.cfg cfg: update scripts to use new stm32 driver names 2011-07-28 11:45:09 +01:00
olimex_stm32_h107.cfg Split olimex_stm32_h107.cfg. 2012-04-20 15:33:24 +00:00
olimex_stm32_p107.cfg Split olimex_stm32_h107.cfg. 2012-04-20 15:33:24 +00:00
omap2420_h4.cfg
open-bldc.cfg
openrd.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
osk5912.cfg
phytec_lpc3250.cfg
pic-p32mx.cfg
propox_mmnet1001.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
pxa255_sst.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
redbee.cfg Fix redbee config files 2011-08-24 11:13:26 +02:00
rsc-w910.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
sheevaplug.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
smdk6410.cfg SMDK6410 is not target, move file to board 2011-05-29 20:05:01 +02:00
spear300evb.cfg TCL: Add board file for EVALSPEAr300 2011-11-21 22:09:09 +00:00
spear300evb_mod.cfg TCL: Add board file for EVALSPEAr300 2011-11-21 22:09:09 +00:00
spear310evb20.cfg TCL/SPEAr: Join two initialization files. 2011-11-21 22:07:19 +00:00
spear310evb20_mod.cfg TCL/SPEAr: Add reference to ST Application Note 2011-11-21 22:03:17 +00:00
spear320cpu.cfg TCL/SPEAr: default one DDR chip 2011-12-06 21:06:15 +00:00
spear320cpu_mod.cfg TCL/SPEAr: fix name of included file 2011-11-22 21:02:55 +00:00
steval_pcc010.cfg Add definition for the STEVAL-PCC010 board with the STM32F207 2011-09-09 10:29:11 +02:00
stm32f0discovery.cfg cfg: add stm32f0discovery board config 2012-04-18 10:50:16 +00:00
stm32f4discovery.cfg STLINK: add stlink v1 configuration 2012-01-27 19:25:58 +00:00
stm32ldiscovery.cfg cfg: add stm32ldiscovery board config 2012-02-10 14:23:45 +00:00
stm32vldiscovery.cfg cfg: add stm32vldiscovery board config 2012-02-07 22:39:04 +00:00
stm3210b_eval.cfg cfg: update scripts to use new stm32 driver names 2011-07-28 11:45:09 +01:00
stm3210c_eval.cfg cfg: update scripts to use new stm32 driver names 2011-07-28 11:45:09 +01:00
stm3210e_eval.cfg cfg: update scripts to use new stm32 driver names 2011-07-28 11:45:09 +01:00
stm3220g_eval.cfg stm3220g_eval.cfg: fix CHIPNAME. 2011-10-25 20:08:58 +00:00
stm3220g_eval_stlink.cfg cfg: add support for STM3220G-EVAL onboard STLINK 2012-03-30 16:02:36 +00:00
stm3241g_eval.cfg cfg: add STM32F4x and STM3241G-EVAL config files 2012-03-30 16:02:14 +00:00
stm3241g_eval_stlink.cfg cfg: add STM32F4x and STM3241G-EVAL config files 2012-03-30 16:02:14 +00:00
stm32100b_eval.cfg cfg: update scripts to use new stm32 driver names 2011-07-28 11:45:09 +01:00
str910-eval.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00
telo.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
ti_beagleboard.cfg
ti_beagleboard_xm.cfg
ti_beaglebone.cfg cfg: Beaglebone/AM335x refactor 2012-02-27 10:01:44 +00:00
ti_blaze.cfg omap4430: add Blaze config 2011-03-13 14:59:39 +01:00
ti_pandaboard.cfg TCL configs for OMAP4430 and Pandaboard 2011-01-31 08:57:50 +01:00
ti_pandaboard_es.cfg pandaboard: add initial TCL support for pandaboard-es 2012-04-18 20:32:08 +00:00
topas910.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
topasa900.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
twr-k60n512.cfg jtag: basic support for P&E Micro OSBDM (aka OSJTAG) adapter 2012-03-13 17:04:07 +00:00
tx25_stk5.cfg Support for KaRo TX25 CPU Module on a StarterkitV base board 2012-04-10 12:15:16 +00:00
tx27_stk5.cfg Made BI-swap optional in mxc. 2011-12-23 09:39:48 +00:00
unknown_at91sam9260.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
uptech_2410.cfg uptech2410 2011-06-02 12:17:28 +02:00
verdex.cfg Verdex: Add support for Gumstix Verdex boards. 2011-10-01 13:11:02 +02:00
voipac.cfg
voltcraft_dso-3062c.cfg Initial config for the Voltcraft DSO-3062C. 2012-04-02 00:02:56 +00:00
x300t.cfg
zy1000.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00