summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorNicolas Schodet2009-05-22 13:13:35 +0200
committerNicolas Schodet2009-05-22 13:13:35 +0200
commit8f3f3cea26f03d5c3979dd594ff02e7d6d49da54 (patch)
tree73525621e71ca89e095c3c459ef9a5d4a9bd3703 /tools
parentaeffe6cdb98abebed2fff0748800123865c00a38 (diff)
* tools/trace:
- stop dump at end of trace.
Diffstat (limited to 'tools')
-rw-r--r--tools/trace/tinter/thost.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/trace/tinter/thost.py b/tools/trace/tinter/thost.py
index b5c43c0f..aabde424 100644
--- a/tools/trace/tinter/thost.py
+++ b/tools/trace/tinter/thost.py
@@ -25,8 +25,13 @@ class THost:
def __dump_callback (self, *memory):
"""Callback call on each data reception"""
+ not_ff = False
for i in range(len (memory)):
+ if memory[i] != 0xff:
+ not_ff = True
self.__memory.append (memory[i])
+ if not not_ff:
+ self.__proto.flush ()
sys.stderr.write (".")
def __trace_present (self, val):
@@ -64,7 +69,7 @@ class THost:
i -= FLASH_PAGE
start_addr = i
- end_addr = start_addr + 100 * 16
+ end_addr = start_addr + FLASH_PAGE
print "Dump memory from address : " + hex(start_addr) + " to " + \
hex(end_addr)