[Flashforth-devel] Sending Forth files with macOS over USB
Brought to you by:
oh2aun
From: Tristan W. <ho...@tj...> - 2019-11-23 12:23:19
|
Hello, I am using a PIC18F14K50 with FlashForth 5 connecting over USB on macOS (10.11 & 10.14). I can enter Forth interactively using both Minicom and ff-shell.py. However, with my setup, neither Minicom nor ff-shell.py is able to successfully send a file of forth source. The PIC appears to be overwhelmed by a torrent of Forth. I did wonder whether the PIC was making a value judgement about quality of my code, but think it more likely that my setup has a flow control problem. Both Minicom and ff-shell.py were setup to use CRTSCTS (though changing to XON/XOFF made no difference) which I think is correct for a USB CDC serial connection. Running Minicom and ff-shell.py interactively and checking the USB CDC serial port settings with stty whilst they are running showed that neither CRTSCTS nor XON/XOFF appeared to be set. I do not know if that is normal for macOS with CDC. If anyone is using macOS and is able to send files via Minicom or ff-shell.py over USB I would appreciate any pointers as to where I am going wrong. I've written a small transfer program for my setup, so I can send Forth files and am enjoying using FlashForth greatly. However, I am new to USB/CDC and would like to know what is wrong with my setup and how to fix it (if possible!) so I can use the existing shells. All help gratefully received. Thank you! Tristan |