]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
h8eurobot: provide board enough time to proceed erase command.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 2 May 2011 18:32:27 +0000 (20:32 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 2 May 2011 18:32:27 +0000 (20:32 +0200)
Some similar configuration has been there probably in past
and it providing enough time to target to finish erase
is required. Sleep between commands ensures, that possible
garbage on input can be cleared by flush in next command.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
board/h8300/h8eurobot/config/config.h8eurobot

index 9274ed999110c4335b36d3d541e5d25201d80c97..734f49fc5681c1bf0018327dc7b852bfe37d83ab 100644 (file)
@@ -19,12 +19,14 @@ HIT_BAUD ?= 57600
 HIT_DEV ?= /dev/ttyUSB0
 TOHIT = $(MAKERULES_DIR)/$(COMPILED_DIR_NAME)/bin-utils/tohit --baud $(HIT_BAUD) --sdev $(HIT_DEV)
 LOAD_CMD-boot = \
-       $(TOHIT) --erase --start 0x000000 --length 0x1600; \
-       $(TOHIT) --command 1 --blockmode 32 --start 0x000000 
+       $(TOHIT) --erase --start 0x000000 --length 0x1600  --wait-reply 2000 ; \
+       sleep 2; \
+       $(TOHIT) --command 1 --blockmode 32 --start 0x000000  --wait-reply 2000
 LOAD_CMD-bload = $(TOHIT) --command B --blockmode 128 --baud 4800
 LOAD_CMD-flash = \
-       $(TOHIT) --erase --start 0x004000 --length 0x03C000; \
-       $(TOHIT) --command 1 --blockmode 32 --start 0x004000 
+       $(TOHIT) --erase --start 0x004000 --length 0x03C000 --wait-reply 2000 ; \
+       sleep 2; \
+       $(TOHIT) --command 1 --blockmode 32 --start 0x004000 --wait-reply 2000
 
 RUN_CMD-ram = $(TOHIT) --go 0x200000
 RUN_CMD-flash = $(TOHIT) --go 0x004000