projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f2e369
)
tools/litex_term: use 64 bytes as default payload_lengh (work for all confniguration...
author
Florent Kermarrec
<florent@enjoy-digital.fr>
Wed, 25 Mar 2020 08:31:51 +0000
(09:31 +0100)
committer
Florent Kermarrec
<florent@enjoy-digital.fr>
Wed, 25 Mar 2020 08:31:51 +0000
(09:31 +0100)
The delay still need to be investigated.
litex/tools/litex_term.py
patch
|
blob
|
history
diff --git
a/litex/tools/litex_term.py
b/litex/tools/litex_term.py
index 107dee6309157a9180a02624ae7d4b1757a40a85..be3d6c850bbd663c025cdf230bd8739219d19548 100755
(executable)
--- 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()