From: Pavel Pisa Date: Mon, 2 May 2011 18:32:27 +0000 (+0200) Subject: h8eurobot: provide board enough time to proceed erase command. X-Git-Url: https://rtime.felk.cvut.cz/gitweb/sysless.git/commitdiff_plain/1195578f91c02120d8edd3e748ca974a0bea3119 h8eurobot: provide board enough time to proceed erase command. 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 --- diff --git a/board/h8300/h8eurobot/config/config.h8eurobot b/board/h8300/h8eurobot/config/config.h8eurobot index 9274ed9..734f49f 100644 --- a/board/h8300/h8eurobot/config/config.h8eurobot +++ b/board/h8300/h8eurobot/config/config.h8eurobot @@ -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