[Amforth] Coolterm as terminal

2018-10-25 Thread Jan Kromhout via Amforth-devel
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/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Coolterm as terminal

2018-10-25 Thread Tristan Williams
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/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel


___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


[Amforth] Coolterm as terminal

2018-10-25 Thread Jan Kromhout via Amforth-devel
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/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Coolterm as terminal

2018-10-25 Thread Tristan Williams
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/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 


___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel