Skip to content

Commit 43e7367

Browse files
committed
wscript: de-assert RTS on miniterm console
Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
1 parent 5efa1e6 commit 43e7367

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

wscript

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,12 @@ def console(ctx):
10991099
os.system("python ./tools/pulse_console.py -t %s" % tty)
11001100
else:
11011101
baudrate = ctx.options.baudrate or 230400
1102-
os.system("python ./tools/log_hashing/miniterm_co.py %s %d" % (tty, baudrate))
1102+
# NOTE: force RTS to be de-asserted, as on some boards (e.g.
1103+
# pblprog-sifli) RTS is used to reset the board SoC. On some OS and/or
1104+
# drivers, RTS may activate automatically, as soon as the port is
1105+
# opened. There may be a glitch on RTS when rts is set differently from
1106+
# their default value.
1107+
os.system("python ./tools/log_hashing/miniterm_co.py %s %d --rts 0" % (tty, baudrate))
11031108

11041109

11051110
class ConsoleCommand(BuildContext):

0 commit comments

Comments
 (0)