openocd/src/target/target
oharboe d3f0549f08 - Work on fixing erase check. Many implementations are plain broken.
Wrote a default flash erase check fn which uses CFI's target algorithm
w/fallback to memory reads. 
- "flash info" no longer prints erase status as it is stale. 
- "flash erase_check" now prints erase status. erase check can take a 
*long* time. Work in progress
- arm7/9 with seperate srst & trst now supports reset init/halt
after a power outage. arm7/9 no longer makes any assumptions
about state of target when reset is asserted.
- fixes for srst & trst capable arm7/9 with reset init/halt
- prepare_reset_halt retired. This code needs to be inside
assert_reset anyway
- haven't been able to get stm32 write algorithm to work. Fallback
flash write does work. Haven't found a version of openocd trunk
where this works.
- added target_free_all_working_areas_restore() which can
let be of restoring backups. This is needed when asserting
reset as the target must be assumed to be an unknown state.
Added some comments to working areas API
- str9 reset script fixes
- some guidelines
- fixed dangling callbacks upon reset timeout 


git-svn-id: svn://svn.berlios.de/openocd/trunk@536 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2008-04-03 14:00:17 +00:00
..
at91eb40a.cfg target scripts for test suite. 2008-03-01 22:00:13 +00:00
at91r40008.cfg target scripts for test suite. 2008-03-01 22:00:13 +00:00
at91sam9260.cfg - added svn prop svn:eol-style native 2008-03-03 20:43:38 +00:00
lpc2148.cfg Edgar Grimberg: added needed delays 2008-03-28 11:28:54 +00:00
lpc2294.cfg target scripts for test suite. 2008-03-01 22:00:13 +00:00
nslu2.cfg - added svn prop svn:eol-style native 2008-03-03 20:43:38 +00:00
pxa255_sst.cfg minor corrections for target scripts. 2008-03-07 11:42:03 +00:00
pxa255.cfg minor corrections for target scripts. 2008-03-07 11:42:03 +00:00
readme.txt - Work on fixing erase check. Many implementations are plain broken. 2008-04-03 14:00:17 +00:00
sam7s256.cfg typo. 2008-03-08 10:21:56 +00:00
sam7x256.cfg target scripts for test suite. 2008-03-01 22:00:13 +00:00
stm32.cfg - Work on fixing erase check. Many implementations are plain broken. 2008-04-03 14:00:17 +00:00
str710.cfg target scripts for test suite. 2008-03-01 22:00:13 +00:00
str912.cfg Edgar Grimberg sharpened the str912 target script. 2008-04-02 14:47:21 +00:00
wi-9c.cfg make jtag_add_statemove() internal to the driver. 2008-03-31 13:18:03 +00:00
xba_revA3.cfg more target scripts wip. 2008-03-10 20:12:46 +00:00
zy1000.cfg - added svn prop svn:eol-style native 2008-03-03 20:43:38 +00:00

Prerequisites:
The users of OpenOCD as well as computer programs interacting with OpenOCD are expecting that certain commands 
do the same thing across all the targets.

Rules to follow when writing scripts:

1. The configuration script should be defined such as , for example, the following sequences are working:
	reset
	flash info <bank>
and
	reset 
	flash erase_address <start> <len>
	
In most cases this can be accomplished by specifying the default startup mode as reset_init (target command 
in the configuration file).
 
2. If the target is correctly configured, flash must be writable without any other helper commands. It is 
assumed that all write-protect mechanisms should be disabled.