From: Jan K. <jan...@ic...> - 2018-10-24 09:48:24
|
Hello, I use Coolterm as terminal. Is it posible to use “include" to load several screens with one command? This as example like this #include install/2-fetch.frt #include install/2-store.frt #include install/quotations.frt #include install/search-name.frt #include install/find-name.frt #include install/defined.frt #include install/dot-s.frt #include install/dumper.frt #include install/dump.frt #include install/question.frt #include install/builds.frt #include install/bitnames.frt Cheers, Jan |
From: Jan K. <jan...@ic...> - 2018-10-24 17:22:13
|
Tristan, I have tried to get it working without any result, I use macOS High Sierra. Do you have tips to get it running? Do you use Python 2 or 3 Cheers, Jan |
From: Tristan W. <ho...@tj...> - 2018-10-25 07:31:09
|
Hi Jan, I am not sure how far you got with amforth-shell.py so I have started at the beginning and worked forward in steps. Step 1 Open an OS X terminal, change to your-amforth-dir/tools directory(folder) and type ./amforth-shell.py --help If this executes you should get a screen full of options with their descriptions. Step 2 Find your uno (or other board's) serial port name. Type ls -lt /dev/*usb* Here is my listing (I have two usb-serial devices plugged in so four entries) crw-rw-rw- 1 root wheel 17, 24 25 Oct 07:39 /dev/tty.usbmodem1411 crw-rw-rw- 1 root wheel 17, 25 25 Oct 07:37 /dev/cu.usbmodem1411 crw-rw-rw- 1 root wheel 17, 23 25 Oct 07:33 /dev/cu.usbserial-A906R1JQ crw-rw-rw- 1 root wheel 17, 22 25 Oct 07:33 /dev/tty.usbserial-A906R1JQ I will use /dev/tty.usbmodem1411 which is from my uno[1] Step 3 In the OS X terminal type (replacing /dev/tty.usbmodem1411 with your serial device name) ./amforth-shell.py -p /dev/tty.usbmodem1411 -s 38400 -i This should leave you in the interactive mode of the amforth-shell.py allowing you interact with AmForth[2] e.g. typing 2 3 + . Should result in 5 To exit type (on my mac # is alt 3) #exit If you get to here, then you have a working amforth-shell.py that can communicate with the uno. Let me know if that is the case. What remains is to get amforth-shell.py to search for and include files. That is Step 4 (which is to follow, if step 3 completed successfully). Regards, Tristan [1] For my uno, if I plug it into a different USB port I will get a different device name - though the port to name mapping is the same. [2] Assuming you have AmForth on the uno. On 24Oct18 19:21, Jan Kromhout via Amforth-devel wrote: > Tristan, > > I have tried to get it working without any result, I use macOS High Sierra. > Do you have tips to get it running? > Do you use Python 2 or 3 > > Cheers, > > Jan > > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel > |
From: Jan K. <jan...@ic...> - 2018-10-25 10:01:14
|
Thanks Tristan, When I run it get the error “no module named serial” Check my versions of Python and when I type "import serial” there is no problem. So I don’t know how to fix this! Cheers, Jan |
From: Tristan W. <ho...@tj...> - 2018-10-25 10:54:07
|
Jan, Perhaps amforth-shell.py is trying to execute one of the versions of python you have on your machine that does not have the required serial module installed or configured. The following might shed some light on the problem but comes with no warranty. Proceed at your own risk. In an OS X terminal, for your versions of python that import serial without error type your-version-of-python --version Choose one that is version 2.7.X (where X is some number) For that one type which your-version-of-python Make a note of the outputted full path Then from the your-amforth-install/tools directory type cp amforth-shell.py backup-amforth-shell.py head -1 amforth-shell.py Compare the output with the full path of the python program you noted above. If different, using an editor, replace the full path of the python executable in amforth-shell.py with the one you noted above. Regards, Tristan On 25Oct18 12:00, Jan Kromhout via Amforth-devel wrote: > Thanks Tristan, > > When I run it get the error “no module named serial” > Check my versions of Python and when I type "import serial” there is no > problem. So I don’t know how to fix this! > > Cheers, > > Jan > > > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |
From: Jan K. <jan...@ic...> - 2018-10-25 17:03:05
|
Tristan, Thanks for the help this day. It is “working” but wen I type in a command a get an error back from amForth. See my output. Anny idee what is going wrong? Cheers Jan Last login: Thu Oct 25 18:54:18 on ttys000 MacBook-Pro-van-Jan-6:~ jankromhout$ cd /Users/jankromhout/Documents/amforth-6.7/tools MacBook-Pro-van-Jan-6:tools jankromhout$ ./amforth-shell.py -p /dev/tty.usbmodem1411 -s 38400 -i |I=appl_defs: 0 loaded |I=Entering amforth interactive interpreter |I=getting MCU name.. |I=successfully loaded register definitions for atmega328p |I=getting filenames on the host |I= Reading /Users/jankromhout/Documents/amforth-6.7/avr8/devices/atmega328p |I= Reading /Users/jankromhout/Documents/amforth-6.7/avr8/lib |I= Reading . |I=getting filenames from the controller (ATmega328P)> (ATmega328P)> 10 ?? -13 8 (ATmega328P)> 10 20 + . ?? -13 6 (ATmega328P)> |
From: Tristan W. <ho...@tj...> - 2018-10-26 07:03:49
|
Jan, I would try adding --rtscts to the ./amforth-shell.py command line. If that does not help, then I would use --debug-serial to have a look at what is happening at a lower level. What model of Arduino are you trying to connect with? Regards, Tristan On 25Oct18 19:02, Jan Kromhout via Amforth-devel wrote: > Tristan, > > Thanks for the help this day. It is “working” but wen I type in a command a get an error back from > amForth. See my output. > Anny idee what is going wrong? > > Cheers > > Jan > > Last login: Thu Oct 25 18:54:18 on ttys000 > MacBook-Pro-van-Jan-6:~ jankromhout$ cd /Users/jankromhout/Documents/amforth-6.7/tools > MacBook-Pro-van-Jan-6:tools jankromhout$ ./amforth-shell.py -p /dev/tty.usbmodem1411 -s 38400 -i > |I=appl_defs: 0 loaded > |I=Entering amforth interactive interpreter > |I=getting MCU name.. > |I=successfully loaded register definitions for atmega328p > |I=getting filenames on the host > |I= Reading /Users/jankromhout/Documents/amforth-6.7/avr8/devices/atmega328p > |I= Reading /Users/jankromhout/Documents/amforth-6.7/avr8/lib > |I= Reading . > |I=getting filenames from the controller > (ATmega328P)> > (ATmega328P)> 10 > ?? -13 8 > (ATmega328P)> 10 20 + . > ?? -13 6 > (ATmega328P)> > > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |
From: Jan K. <jan...@ic...> - 2018-10-26 09:51:27
|
Tristan, I’m using an original Arduino-Uno The next thing is to figure out how to include some of the .frt files. Docu is hard to understand. It is working now with MacBook-Pro-van-Jan-6:tools jankromhout$ ./amforth-shell.py -p /dev/tty.usbmodem1421 -s 38400 -i —rtscts I greatly appreciated your help Cheers Jan |
From: Peter C. H. <Pet...@un...> - 2018-10-24 11:53:47
|
Jan, With CoolTerm it is not possible to use the “include” mechanism. However, there is a terminal program (shell) specifically written in Python for use with FlashForth (flashforth.com). This most likely also works with AmForth and most likely can handle “include”. I once tried but could not get this shell to work on my Mac in a hurry and so did not pursue it further and continued using CoolTerm. If you succeed, I would be happy to hear from you. Besides the Forth specific shell for FlashForth I have also seen one or two similar alternatives. Peter > On 24 Oct 2018, at 11:48, Jan Kromhout via Amforth-devel <amf...@li...> wrote: > > Hello, > > I use Coolterm as terminal. Is it posible to use “include" to load several screens with one command? > > This as example like this > > #include install/2-fetch.frt > #include install/2-store.frt > #include install/quotations.frt > #include install/search-name.frt > #include install/find-name.frt > #include install/defined.frt > #include install/dot-s.frt > #include install/dumper.frt > #include install/dump.frt > #include install/question.frt > #include install/builds.frt > #include install/bitnames.frt > > Cheers, > > Jan > > > > > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |
From: Martin B. <mar...@t-...> - 2018-10-24 14:59:03
|
Hi Jan! I recommend e4thcom written by Manfred Mahlow https://wiki.forth-ev.de/ doku.php/projects:e4thcom Think it's worth to have a look at (if you'r on your way with Linux). Regards Martin Am Mittwoch, 24. Oktober 2018, 11:48:07 CEST schrieb Jan Kromhout via Amforth-devel: > Hello, > > I use Coolterm as terminal. Is it posible to use “include" to load several > screens with one command? > > This as example like this > > #include install/2-fetch.frt > #include install/2-store.frt > #include install/quotations.frt > #include install/search-name.frt > #include install/find-name.frt > #include install/defined.frt > #include install/dot-s.frt > #include install/dumper.frt > #include install/dump.frt > #include install/question.frt > #include install/builds.frt > #include install/bitnames.frt > > Cheers, > > Jan > > > > > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel -- Getippt im 9-Fingersystem von mir selbst. |
From: Tristan W. <ho...@tj...> - 2018-10-24 17:14:20
|
Hi Jan, On OS X I use amforth-shell.py which is in the tools directory of the AmForth distribution. More info below http://amforth.sourceforge.net/TG/recipes/Upload.html Regards, Tristan On 24Oct18 16:58, Martin Bitter wrote: > Hi Jan! > > I recommend e4thcom written by Manfred Mahlow https://wiki.forth-ev.de/ > doku.php/projects:e4thcom > > Think it's worth to have a look at (if you'r on your way with Linux). > > Regards Martin > > > > > Am Mittwoch, 24. Oktober 2018, 11:48:07 CEST schrieb Jan Kromhout via > Amforth-devel: > > Hello, > > > > I use Coolterm as terminal. Is it posible to use “include" to load several > > screens with one command? > > > > This as example like this > > > > #include install/2-fetch.frt > > #include install/2-store.frt > > #include install/quotations.frt > > #include install/search-name.frt > > #include install/find-name.frt > > #include install/defined.frt > > #include install/dot-s.frt > > #include install/dumper.frt > > #include install/dump.frt > > #include install/question.frt > > #include install/builds.frt > > #include install/bitnames.frt > > > > Cheers, > > > > Jan > > > > > > > > > > > > _______________________________________________ > > Amforth-devel mailing list for http://amforth.sf.net/ > > Amf...@li... > > https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > -- > Getippt im 9-Fingersystem von mir selbst. > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |