From 1195578f91c02120d8edd3e748ca974a0bea3119 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 2 May 2011 20:32:27 +0200 Subject: [PATCH] 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 --- board/h8300/h8eurobot/config/config.h8eurobot | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.39.2