mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Increase delay for tty.usbmodem
on macOS.
**Problems** On macOS USB CDC ACM, which appears as `/dev/tty.usbmodem*`, somehow `lxterm` keeps failing to send a payload. **Solution** Increase delay. It's very unknown why to me, however, probably macOS USB CDC ACM driver implementation issue. **Testing** Tested on MacBook Air (2020, M1) for OrangeCrab (rev.0.2) target with Linux on LiteX SoC bitstream build from current commit and load prebuild Linux On LiteX image.
This commit is contained in:
parent
f9f1b8e25d
commit
0953c52eea
1 changed files with 3 additions and 0 deletions
|
@ -314,6 +314,9 @@ class LiteXTerm:
|
|||
if "ttyACM" in port:
|
||||
self.payload_length = sfl_payload_length
|
||||
self.delay = 1e-4
|
||||
elif "tty.usbmodem" in port:
|
||||
self.payload_length = sfl_payload_length
|
||||
self.delay = 1e-3
|
||||
else:
|
||||
self.payload_length = 64
|
||||
self.delay = 1e-5
|
||||
|
|
Loading…
Reference in a new issue