Skip to content

Commit 9ac7ab9

Browse files
committed
python_libs/pulse2/link: force RTS de-assert
This is causing issues on pblprog-sifli, where it seems RTS is asserted after port is open, and RTS is used to control the chip reset. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
1 parent f5b6858 commit 9ac7ab9

File tree

1 file changed

+3
-1
lines changed
  • python_libs/pulse2/pebble/pulse2

1 file changed

+3
-1
lines changed

python_libs/pulse2/pebble/pulse2/link.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
logger.addHandler(logging.NullHandler())
2222

2323
DBGSERIAL_PORT_SETTINGS = dict(baudrate=1000000, timeout=0.1,
24-
interCharTimeout=0.0001)
24+
interCharTimeout=0.0001, rtscts=False)
2525

2626

2727
def get_dbgserial_tty():
@@ -83,6 +83,8 @@ def open_dbgserial(cls, url=None, capture_stream=None):
8383
elif url == 'qemu':
8484
url = 'socket://localhost:12345'
8585
ser = serial.serial_for_url(url, **DBGSERIAL_PORT_SETTINGS)
86+
# do not assert RTS, it is used on some programmers to reset chip
87+
ser.rts = False
8688

8789
if url.startswith('socket://'):
8890
# interCharTimeout doesn't apply to sockets, so shrink the receive

0 commit comments

Comments
 (0)