tcl: add memory testing functions for board diagnostics 55/1455/4
authorPaul Fertser <fercerpav@gmail.com>
Fri, 21 Jun 2013 21:16:41 +0000 (01:16 +0400)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 29 Oct 2013 22:50:33 +0000 (22:50 +0000)
commitb16a7f9f6e3c7c417fa3d0d0bf042f032ee446f6
treefbd87a74b47509f33d7e453938456d99b830935a
parentd4e195ad1b544b0396cab4c70437371958769196
tcl: add memory testing functions for board diagnostics

This is a tcl implementation of public domain tests by Michael Barr,
http://www.barrgroup.com/Embedded-Systems/How-To/Memory-Test-Suite-C

The initial porting is done by Shane Volpe and posted to the mailing
list:
http://www.mail-archive.com/openocd-development@lists.berlios.de/msg16676.html

This patch includes some cosmetic amendments plus hardcodes 32bit word
size (as the code depends on memread32/memwrite32 anyway) which fixes
original code's issue of testing only the first quarter of the
specified nBytes.

Change-Id: I5f3a66f1f16fc4082c7a5a6aba338430646ed21c
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/1455
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-by: Mathias K├╝ster <kesmtp@freenet.de>
doc/openocd.texi
tcl/tools/memtest.tcl [new file with mode: 0644]