tinyriscv-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 AM/DM37x: Unify configuration scripts and add support for TI Beagleboard xM. 2010-09-20 09:17:28 +02:00
arm_evaluator7t.cfg Remove annoying end-of-line whitespace from tcl/* files 2009-09-21 18:48:22 +00:00
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 : reset_config should go to the board config file 2010-05-18 11:48:47 +02:00
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 native line endings 2009-08-21 09:01:00 +00:00
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 at91sam3s* support 2010-06-25 21:37:53 +02:00
atmel_sam3u_ek.cfg target.cfg: (re)move some bogus reset_config lines 2009-11-10 09:25:26 -08:00
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 TCL scripts: update to current "flash bank" syntax 2010-03-26 08:42:58 +01:00
colibri.cfg board scripts: Marvell PXA270M processor has a new TAPID: 0x89265013 2010-09-14 11:15:35 +02:00
crossbow_tech_imote2.cfg rename jtag_nsrst_delay as adapter_nsrst_delay 2010-03-15 08:41:30 -07:00
csb337.cfg rename jtag_khz as adapter_khz 2010-03-15 08:37:43 -07:00
csb732.cfg rename jtag_nsrst_delay as adapter_nsrst_delay 2010-03-15 08:41:30 -07:00
da850evm.cfg cfg: add omapl138 support and da850evm preliminary support 2010-08-10 09:43:30 +02:00
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 TCL scripts: replace "puts" with "echo" 2010-11-09 08:12:51 +01:00
dm365evm.cfg rename jtag_khz as adapter_khz 2010-03-15 08:37:43 -07:00
dm6446evm.cfg TCL scripts: replace "puts" with "echo" 2010-11-09 08:12:51 +01:00
efikamx.cfg Add EfikaMX smarttop board support 2010-11-05 11:25:57 +01:00
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 TCL scripts: replace "puts" with "echo" 2010-11-09 08:12:51 +01:00
glyn_tonga2.cfg Glyn Tonga2: Faster JTAG speed after CPU/RAM init. 2012-04-13 08:57:29 +00:00
hammer.cfg TCL scripts: update to current "flash bank" syntax 2010-03-26 08:42:58 +01:00
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 LPC1768 updates, IAR board support 2010-03-02 15:02:01 -08:00
iar_str912_sk.cfg Move TCL script files -- Step 2 of 2: 2009-05-27 06:49:24 +00:00
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 TCL SCRIPTS: fix command name 2010-04-15 19:10:36 +02:00
imx27lnst.cfg rename jtag_khz as adapter_khz 2010-03-15 08:37:43 -07:00
imx28evk.cfg topic: Add support for i.MX28EVK 2012-02-13 12:03:26 +00:00
imx31pdk.cfg imx31pdk: use rclk w/1MHz fallback 2010-10-28 08:43:04 +02:00
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 Audrius Urmanavičius [didele.deze@gmail.com]: 2009-08-13 13:54:53 +00:00
keil_mcb2140.cfg Move TCL script files -- Step 2 of 2: 2009-05-27 06:49:24 +00:00
kwikstik.cfg add Freescale Kinetis K40 devices and Kwikstik eval board 2011-10-23 13:23:49 +00:00
linksys_nslu2.cfg target.cfg: remove "-work-area-virt 0" 2009-11-08 08:52:40 -08:00
lisa-l.cfg config: do not use deprecated stm32.cfg 2011-11-17 17:30:03 +00:00
logicpd_imx27.cfg TCL SCRIPTS: fix command name 2010-04-15 19:10:36 +02:00
lubbock.cfg TCL scripts: replace "puts" with "echo" 2010-11-09 08:12:51 +01:00
mcb1700.cfg scripts: use adapter_khz not deprecated jtag_khz 2011-11-18 22:14:55 +00:00
microchip_explorer16.cfg config scripts: remove useless reference to OpenOCD docs 2010-08-11 10:53:54 +02:00
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 Move TCL script files -- Step 2 of 2: 2009-05-27 06:49:24 +00:00
olimex_lpc_h2148.cfg Move TCL script files -- Step 2 of 2: 2009-05-27 06:49:24 +00:00
olimex_sam7_ex256.cfg Move TCL script files -- Step 2 of 2: 2009-05-27 06:49:24 +00:00
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 board configs -- unique names for flash chips 2010-01-20 10:46:53 -08:00
open-bldc.cfg Added Open-BLDC board config file. 2009-12-29 12:41:43 +01:00
openrd.cfg TCL: fix non TCL comments 2010-12-18 21:04:22 +01:00
osk5912.cfg board configs -- unique names for flash chips 2010-01-20 10:46:53 -08:00
phytec_lpc3250.cfg rename jtag_nsrst_delay as adapter_nsrst_delay 2010-03-15 08:41:30 -07:00
pic-p32mx.cfg PIC32: add Microchip Explorer16 cfg 2010-03-16 10:10:20 +00:00
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 Dirk Behme <dirk.behme@googlemail.com> Add default fall back freqency. 2009-09-04 08:27:08 +00:00
ti_beagleboard_xm.cfg AM/DM37x: Unify configuration scripts and add support for TI Beagleboard xM. 2010-09-20 09:17:28 +02:00
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 Add Voipac PXA270 module support 2010-04-26 07:08:55 +02:00
voltcraft_dso-3062c.cfg Initial config for the Voltcraft DSO-3062C. 2012-04-02 00:02:56 +00:00
x300t.cfg TCL scripts: update to current "flash bank" syntax 2010-03-26 08:42:58 +01:00
zy1000.cfg target config files: Fix whitespace issues. 2011-11-07 16:16:33 +00:00