From: Florent Kermarrec Date: Wed, 25 Mar 2020 08:31:51 +0000 (+0100) Subject: tools/litex_term: use 64 bytes as default payload_lengh (work for all confniguration... X-Git-Tag: 24jan2021_ls180~520 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffe83ef0f3d6846f0674d8085f49bcaf0f4b130c;p=litex.git 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. --- 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()