From: Al W. <al....@aw...> - 2010-09-17 18:17:23
|
I remembered that I wrote a simple upload program for the RCA 1802 a few years back that had a lot of the same serial comm issues (handshaking, etc). So I pulled the code out and ported it for amforth. Probably not as useful for Windows users though since iti depends on minicom to handle the serial I/O. Very handy to be able to just be working at the terminal and upload a word. http://dl.dropbox.com/u/360343/am4up.c Here's the instructions from the comments inside the file: // Filter to upload files to amforth from minicom // Al Williams http://www.hotsolder.com // Originally for the elf (if you were wondering about the names) // 17 Sept 2010 -- Public Domain // Minicom uploader has stdin connected to serial input, // stdout connected to serial output // stderr connects back to minicom // exit code 0 for success or non zero for fail // To set this up, use Control+AO and configure file transfer // protcols. Set a name and the program file name // Set Name=Y, U/D to U, FullScrn to N, IO-Red to Y, and Multi to N // OR you can put this in /etc/minicom/minirc.amforth /**************** Start file on line below # Machine-generated file - use setup menu in minicom to change parameters. pu pname10 YUNYNamforth pu pprog10 am4up pu baudrate 9600 pu bits 8 pu parity N pu stopbits 1 pu minit pu mreset pu backspace BS pu rtscts No **************** Line above was the last line of the file */ // Then start minicom like this: // minicom -w -D /dev/ttyUSB1 amforth // This presumes you have am4up (this file compiled with gcc) on your path // and you are using /dev/ttyUSB1. // // To compile this file: // gcc -o am4up am4up.c // Then copy the am4up executable to your path somewhere // The character pacing is handled by waiting for the echo // The line pacing is handled by waiting for > or k // A ? in the prompt output indicates an error // Note you might still be in a defining word so // when you get an error you might have to enter a ; to get back // to a normal prompt. Al W. |
From: Matthias T. <mt...@we...> - 2010-09-17 18:43:51
|
Hi Al, > I remembered that I wrote a simple upload program for the RCA 1802 a few years > back that had a lot of the same serial comm issues (handshaking, etc). So I > pulled the code out and ported it for amforth. Probably not as useful for > Windows users though since iti depends on minicom to handle the serial I/O. > > Very handy to be able to just be working at the terminal and upload a word. > > http://dl.dropbox.com/u/360343/am4up.c Smart tool, cool. It simply works. Thank you. It makes the python-script(s) obsolete ;=) Matthias |
From: Al W. <al....@aw...> - 2010-09-17 18:52:19
|
Ah the Python scripts are way more portable though. If you wish to include the uploader in the distribution tools, feel free. On Friday, September 17, 2010 13:43:43 pm Matthias Trute wrote: > Hi Al, > > > I remembered that I wrote a simple upload program for the RCA 1802 a few > > years back that had a lot of the same serial comm issues (handshaking, > > etc). So I pulled the code out and ported it for amforth. Probably not > > as useful for Windows users though since iti depends on minicom to > > handle the serial I/O. > > > > Very handy to be able to just be working at the terminal and upload a > > word. > > > > http://dl.dropbox.com/u/360343/am4up.c > > Smart tool, cool. It simply works. Thank you. It makes the > python-script(s) obsolete ;=) > > Matthias > > > > --------------------------------------------------------------------------- > --- Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Amforth-devel mailing list > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |
From: pito <pi...@vo...> - 2010-09-17 18:54:32
|
Al, few years back somebody offered to me the 1802.. I was not fast enough, a pity. Pito |
From: Erich W. <ew....@na...> - 2010-09-17 19:10:57
|
Hi Al, On 09/17/2010 08:11 PM, Al Williams wrote: > http://dl.dropbox.com/u/360343/am4up.c superb! Works for my arduino duemilanove, which is very resistive to amforth-upload.py. Thanks for sharing this! Erich |
From: Al W. <al....@aw...> - 2010-09-17 19:16:49
|
I don't know how to turn word wrap on in the minirc.amforth file which is why you need the -w flag (or ^AW when running). Anyone know how to turn that on in the config file? On Friday, September 17, 2010 14:09:46 pm Erich Waelde wrote: > Hi Al, > > On 09/17/2010 08:11 PM, Al Williams wrote: > > http://dl.dropbox.com/u/360343/am4up.c > > superb! Works for my arduino duemilanove, which is very > resistive to amforth-upload.py. > > Thanks for sharing this! > > Erich > > --------------------------------------------------------------------------- > --- Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Amforth-devel mailing list > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |
From: Matthias T. <mt...@we...> - 2010-09-18 08:07:22
|
Al, > I don't know how to turn word wrap on in the minirc.amforth file which is why > you need the -w flag (or ^AW when running). Anyone know how to turn that on in > the config file? not really the config file but an environment variable export MINICOM=-wC (this part of by .profile) Matthias |
From: Marcin C. <sa...@sa...> - 2010-09-18 09:12:44
|
>> Erich Waelde <ew....@na...> wrote: > Hi Al, > > On 09/17/2010 08:11 PM, Al Williams wrote: >> http://dl.dropbox.com/u/360343/am4up.c > > superb! Works for my arduino duemilanove, which is very > resistive to amforth-upload.py. While we are at it, anyone has an idea why xonxoff.frt causes serial communication to stop after ca. two lines entered? I'd prefer to use old hardcore tools like tip or cu and software flow control (since we can't get satisfaction w/RTS CTS or DTR). //Marcin |