From 7af446b84e8611af691d9a15d15326106abd344d Mon Sep 17 00:00:00 2001 From: dodge-this Date: Fri, 8 Feb 2013 20:30:30 +0000 Subject: [PATCH] improved ecdump... actually goes back and rereads sections that have failed. failures were causing breaks in segments. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1468 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFETAT91X40.py | 129 +++++++++++++++++++++++---------------- 1 file changed, 75 insertions(+), 54 deletions(-) diff --git a/client/GoodFETAT91X40.py b/client/GoodFETAT91X40.py index fa4b30a..0776c2d 100644 --- a/client/GoodFETAT91X40.py +++ b/client/GoodFETAT91X40.py @@ -519,6 +519,10 @@ def at91x40_main(): at91x40_cli_handler(client, sys.argv) + + +BLOCK_DWORDS = 48 +BLOCK_SIZE = 4 * BLOCK_DWORDS def at91x40_cli_handler(client, argv): if(argv[1]=="chipRegStr"): @@ -586,65 +590,73 @@ def at91x40_cli_handler(client, argv): client.halt() h = IntelHex(None) - i=start + base = start err_cnt = 0 reset_cnt = 0 - while i<=stop: - try: - data=client.ARMreadChunk(i, 48, verbose=0) - print "Dumped %06x."%i - for dword in data: - if i<=stop and dword != 0xdeadbeef: - h.puts( i, struct.pack("