Hi, I just got it working and want to share my notes.
-----------------
Quickstart: Amforth on Arduino Diecimila
---------------------------------------
I recommend using Ubuntu 8.04 or 8.10 for this. If you don't have it.
You can install Ubuntu on your computer inside VMWare.
1. Install tools with:
"sudo apt-get install subversion wine avra avrdude minicom"
2. Download AVRStudio4 from
http://www.atmel.com/dyn/Products/tools_card.asp?tool_id=2725 we need
a directory in that installation. Then use Wine to install the
exe-file. Needed directory is ~/.wine/drive_c/Program\
Files/Atmel/AVR\ Tools/AvrAssembler/Appnotes.
"wine astudio4b623.exe"
3. Checkout Amforth source code from trunk.
"svn co https://amforth.svn.sourceforge.net/svnroot/amforth/trunk amforth"
Tip #1: Install http://www.arduino.cc/files/arduino-0012-linux.tgz
This IDE have a very useful file, that will reveal what parameters
avra need to upload the hex file.
Look in ~/arduino-0012/hardware/bootloaders/atmega168/Makefile. This
file gave me the hint of using "USB=-c stk500v2 -P usb -b 115200" as
parameters to avra. I'm AVRISP mkII.
Now we have all programs, and all information to compile Amforth.
1. Make copy of ~/amforth/appl/template and use that as a starting point.
2. Remember to adjust the cpu rate with ".equ F_CPU = 16000000" in template.asm
3. Use "sudo make"
For a complete change log, look at attached file makefile.diff.txt
To communicate with my Amforth on Arduino. I use minicom with these
defaults. This is ~/.minicom.dfl
----------8<-----------
# Machine-generated file - use setup menu in minicom to change parameters.
pu port /dev/ttyUSB0
pu baudrate 9600
pu mini
pu rtscts No
pu xonxoff Yes
----------8<-----------
Now, what's most fascinating about all this. Is that this little cpu,
run a language more powerful than anything else I have installed on my
regular computer. Happy hacking!
And remember, there are no dumb questions.
Copy paste friendly quick start
------------------------------------
sudo apt-get install subversion wine avra avrdude minicom
firefox http://www.atmel.com/dyn/Products/tools_card.asp?tool_id=2725
wine astudio4b623.exe
svn co https://amforth.svn.sourceforge.net/svnroot/amforth/trunk amforth
wget http://www.arduino.cc/files/arduino-0012-linux.tgz # (optional)
cp -R ~/amforth/appl/template ~/amforth/appl/first
cd ~/amforth/appl/first
(make changes to template.asm and makefile described in makefile.diff.txt)
sudo make
|