From ffe83ef0f3d6846f0674d8085f49bcaf0f4b130c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 25 Mar 2020 09:31:51 +0100 Subject: [PATCH] tools/litex_term: use 64 bytes as default payload_lengh (work for all confniguration) and add small delay between frames for FT245 FIFO. The delay still need to be investigated. --- litex/tools/litex_term.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/tools/litex_term.py b/litex/tools/litex_term.py index 107dee63..be3d6c85 100755 --- a/litex/tools/litex_term.py +++ b/litex/tools/litex_term.py @@ -52,7 +52,7 @@ sfl_prompt_ack = b"\x06" sfl_magic_req = b"sL5DdSMmkekro\n" sfl_magic_ack = b"z6IHG7cYDID6o\n" -sfl_payload_length = 64#251 +sfl_payload_length = 64 # General commands sfl_cmd_abort = b"\x00" @@ -224,6 +224,7 @@ class LiteXTerm: current_address += len(frame_data) position += len(frame_data) remaining -= len(frame_data) + time.sleep(1e-6) # FIXME: small delay needed with FT245 FIFO ("usb_fifo"), understand why. end = time.time() elapsed = end - start f.close() -- 2.30.2