From: Matthias T. <mt...@we...> - 2010-11-27 19:58:43
|
Robert, > I installed AvrStudio4 and Update SP3, hope this was right. It doesn't really matter, the changas for a particular device are small and I did not found anything relevant for the amforth prompt (at least). > >> install wine and copy the Atmel assembler avrasm2.exe >> together with the AppNotes2 directory > > I think AppNotes2 has changed name (maybe this was SP3?). > I took Atmel/AVR\ Tools/AvrAssembler2/Appnotes which seems to work, > so I assume it's the right one. There are a lot of inc files there which look basically all the same: ------ .... ; ***** BOOT_LOAD ******************** ; SPMCSR - Store Program Memory Control Register .equ SPMEN = 0 ; Store Program Memory Enable .equ PGERS = 1 ; Page Erase .equ PGWRT = 2 ; Page Write .... ------------ > >> Finally run "ant mega.hex" in the appl/arduino directory and > > went fine. (I did not test build with make) Hey, cool. Looks like ant is simpler in use than make Nobody should say anything against java ;=)) > >> you should get two (or more) new files that need to be burned with ISP >> or JTAG onto your mega arduino board. > > avrdude? works fine. If you look at the avr-buid.xml file, you will see a <macrodef name="avrdude"> which has all the settings, including some macros from programmer.properties and the build.xml in your application directory. Way to complicate, IMHO. If anyone has a better idea, let me know. CMake would be an option. > So I will free two arduinos now (much work), > improvise an ISP with one of them (easy), IMHO that ISP ardiuno should speak some standard protocol like avr109 or avr910. But I've never tested them.. > find out which files to burn and how (more work...) > more googling and probably man avrdude avrdude is a classic unix tool: many command line options and works for smart people only ;=). But it has a verbose mode which tells long stories.. Matthias |