]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - board/h8300/h8eurobot/config/config.h8eurobot
h8eurobot: provide board enough time to proceed erase command.
[sysless.git] / 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