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.
 

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to