You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The support for serial targets can be confusing and frustrating. Currently muforth connects to the device specified by a symbolic link - mu/serial-target. One issue with this is that when using USB-to-serial converters (ftdi, pl2303, etc) if the device gets wedged it will often re-enumerate and come up as a different device. Eg, muforth is connected to /dev/ttyUSB0, which wedges and re-enumerates as ttyUSB1. Now you quit muforth and re-run it, and you can't connect. It's ugly and awkward.
However, sometimes - like when using the *-peer code to test a serial protocol, you want muforth to honor the serial-target symlink (which in that case will point to /dev/pty/). Though even in this case re-enumeration (on the peer side) can occur and be confusing.
Probably the best solution is for serial-target to somehow be a template or prefix, and at runtime, muforth tries several variations (at least two: 0 and 1) before giving up.
Sadly, for this work, the exception code has to change, so that the serial interface code can "catch" thrown exceptions, rather than having them totally unwind the stack.
The text was updated successfully, but these errors were encountered:
for this work, the exception code has to change, so that the serial interface code can "catch" thrown exceptions, rather than having them totally unwind the stack.
The support for serial targets can be confusing and frustrating. Currently muforth connects to the device specified by a symbolic link - mu/serial-target. One issue with this is that when using USB-to-serial converters (ftdi, pl2303, etc) if the device gets wedged it will often re-enumerate and come up as a different device. Eg, muforth is connected to /dev/ttyUSB0, which wedges and re-enumerates as ttyUSB1. Now you quit muforth and re-run it, and you can't connect. It's ugly and awkward.
However, sometimes - like when using the *-peer code to test a serial protocol, you want muforth to honor the serial-target symlink (which in that case will point to /dev/pty/). Though even in this case re-enumeration (on the peer side) can occur and be confusing.
Probably the best solution is for serial-target to somehow be a template or prefix, and at runtime, muforth tries several variations (at least two: 0 and 1) before giving up.
Sadly, for this work, the exception code has to change, so that the serial interface code can "catch" thrown exceptions, rather than having them totally unwind the stack.
The text was updated successfully, but these errors were encountered: