From: Robert E. <epp...@so...> - 2010-11-19 12:16:07
|
I have discovered the Arduino which is a nice project, but having some prior experience with FORTH i cannot enjoy the software part ;) So I asked $SEARCHENGINE and found this project. Right now I try to make sense of the different links I've got. Unfortunately it is not so easy for a newcomer to filter up-to-date info from outdated one. So I would appreciate a few pointers to help me transforming an Arduino mega into my first Forthduino. This would probably speed me up and get me quicker to the point where I can start flooding this friendly list with tons of questions ;) Robert Epprecht btw (can't wait with questions): * better to start with v4.2 or cvs version right now? * what's the last word regarding fuse settings? |
From: Matthias T. <mt...@we...> - 2010-11-19 19:10:44
|
hi, > > So I asked $SEARCHENGINE and found this project. Right now I try to > make sense of the different links I've got. Unfortunately it is not so > easy for a newcomer to filter up-to-date info from outdated one. Can you please give some more details? I try to keep the things up-to date on the project homepage (at least). > > So I would appreciate a few pointers to help me transforming an > Arduino mega into my first Forthduino. That should be easy: just use Linux (any other OS may work as well but I do not use them), install wine and copy the Atmel assembler avrasm2.exe together with the AppNotes2 directory somewhere into your filesystem. Finally install ant (a java build system, just like make). make may work as well, I did not really test it for the arduino's. The next step is some editor work: build.xml or makefile contain some path definitions, it should be obvious what to do (we are all developers, arnt we?). Finally run "ant mega.hex" in the appl/arduino directory and you should get two (or more) new files that need to be burned with ISP or JTAG onto your mega arduino board. That ISP thing can be another arduino with the ISP software loaded, btw. I found that the arduino mega acts strangly, after burning the hex files it may be useful to re-connect the USB connector twice to get the serial connection work, dont ask me why. > btw (can't wait with questions): > * better to start with v4.2 or cvs version right now? always use a release version, the trunk checkouts can be buggy. Even more: if one version does not work, some older versions may do the job, its worth to give them a try, the changes are all documented, just read them in reverse order. > * what's the last word regarding fuse settings? The arduino factory settings do _not_ work, there is a readme in the arduino directory, which contains working parameters. btw: you can destroy your arduino with the wrong settings, be careful. they can be recovered, but thats really tricky and requires special prgramming hardware. Matthias |
From: Robert E. <epp...@so...> - 2010-11-20 07:58:29
|
Hi Matthias nice to meet you and a big thank for amforth first of all... Matthias Trute <mt...@we...> writes: > I try to keep the things up-to date on the project homepage (at least). No problems with the homepage, I will tell you if I find any. >> transforming an Arduino mega into my first Forthduino. > That should be easy: just use Linux (any other OS may work > as well but I do not use them), install wine [...] Thank you for these informations. I'm working with Debian Linux. Never used wine before. This should not be a problem beside the fact that I must free space on my hd first... > I found that the arduino mega acts strangly, after burning the > hex files it may be useful to re-connect the USB connector > twice to get the serial connection work, dont ask me why. Is this only the mega, or does it show on other Arduinos too? Robert end of message. Any text below this line was inserted by a man-in-the-middle-attack ;) |
From: <ken...@al...> - 2010-11-20 13:41:35
|
Hi Robert, Just last night I got my BBB, an arduino clone by Modern Device, working. This board uses separate serial adapters. Using a serial port level shifter, I got only "amf" when I reset the arduino. Using the BUB, a FTDI based USB adapter. I'd get the complete "amforth 4.0 ATmega328P" header followed by a constant stream of garbage characters interrupted by a forth error each time the input ran over 80 characters. Last night I tried an adapter made from a $4 clone of the Nokia CA-42 USB cable. It worked just fine. There seems to be some magic involved in talking to the arduino Regards, Ken On Sat, 20 Nov 2010 08:59 +0100, "Robert Epprecht" <epp...@so...> wrote: > > > I found that the arduino mega acts strangly, after burning the > > hex files it may be useful to re-connect the USB connector > > twice to get the serial connection work, dont ask me why. > > Is this only the mega, or does it show on other Arduinos too? > |
From: Matthias T. <mt...@we...> - 2010-11-21 18:56:59
|
Robert, > > Thank you for these informations. I'm working with Debian Linux. > Never used wine before. just another hint: I did not configure my ubuntu wine at all, only at the very first run it may present a config dialog, just press ok to accept all defaults. Running avrasm2 is the only task for my wine installation.. > This should not be a problem beside the > fact that I must free space on my hd first... only a few megabytes, not a big deal (nowadays) > >> I found that the arduino mega acts strangly, after burning the >> hex files it may be useful to re-connect the USB connector >> twice to get the serial connection work, dont ask me why. > > Is this only the mega, or does it show on other Arduinos too? Cannot tell, I've got only one board. If someone can figure out a better initialization of the usart settings, please let me know. Matthias |
From: Christian K. <ck...@pe...> - 2010-11-23 11:29:14
|
* Matthias Trute <mt...@we...> [101121 19:57]: > Robert, > > > > > Thank you for these informations. I'm working with Debian Linux. > > Never used wine before. > > just another hint: I did not configure my ubuntu wine at all, only > at the very first run it may present a config dialog, just press ok > to accept all defaults. Running avrasm2 is the only task for my > wine installation.. Also note that running a development branch avra does work after some tweaks. This makes it also accessible for architectures where wine is not an option. Kind regards, Christian |
From: <ew....@na...> - 2010-11-24 08:02:45
|
Hi Robert, Quoting Robert Epprecht <epp...@so...>: > Sorry for the delay, > had to resolve some other issues not directly related. > > > Christian Kellermann <ck...@pe...> writes: > >> * Matthias Trute <mt...@we...> [101121 19:57]: > >>> > I'm working with Debian Linux. >>> > Never used wine before. > >>> Running avrasm2 is the only task for my wine installation.. > >>> install wine and copy the Atmel assembler avrasm2.exe >>> together with the AppNotes2 directory somewhere into your filesystem. > > I found avrasm2.exe, but I don't know how to get AppNotes2 :( > www.atmel.com does not let me download it. The software must > have telepatic capabilities and feel my uneasiness with downloads > where you have to give your snail mail address, phone, ... > > What's in that directory, btw? The AppNotes dir has all the include files for the supported controllers. You cannot really do without. However, distributing this stuff other than downloading it directly from atmel is not an option. You need to download AVRStudio and unpack it. In there is the desired stuff. As far as I remember, no registration required. And even if: there is some fun in testing out, whether a " " (blank) is ok for "City:" :-) > >> Also note that running a development branch avra does work after >> some tweaks. This makes it also accessible for architectures where >> wine is not an option. > > Sounds interesting. Would I still need these AppNotes2? > > I thought for the first time I try the 'official' way and later try the > avra route. Looks like I should change that plan. > > BTW: isn't there an avr assembler in the Gnu compiler suite? > Can I use this one? No, the assembly notation is different, I think (may be the wrong excuse) > Or is that avra? (sorry, sounds like silly questions). Avra can be used with quirks: the old version of avra (before 1.3.0) used to work until amforth 3.0 or 3.4 (I'm not at my home computer). It will NOT work with amforth 4.2. However there are patches (check the list archive) to trick avra 1.3.0 into assembling amforth 4.2. I have used this, but it definitely needs more testing. If you are comfortable patching and compiling from sources, you could give it a try. > > Thanks for your help so far, > Robert, slowly progressing... Don't dispair :-) Cheers, Erich > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Amforth-devel mailing list > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel > |
From: Robert E. <epp...@so...> - 2010-11-24 09:10:02
|
ew....@na... writes: >> What's in that directory, btw? > The AppNotes dir has all the include files for the supported controllers. > You cannot really do without. However, distributing this stuff other than > downloading it directly from atmel is not an option. > > You need to download AVRStudio That's where I'm stuck right now. Maybe the server has a problem, or it just does not like me :( > As far as I remember, no registration required. Unfortunately you *need* to register (for the base package). > there is some fun in testing out, whether a " " (blank) is ok for "City:" > :-) Oh, I already *did* some tests (I have some FORTH experience, after all ;) >> Thanks for your help so far, >> Robert, slowly progressing... > > Don't dispair :-) You don't know me :) I can be quite stubborn. Robert |
From: Robert E. <epp...@so...> - 2010-11-27 15:46:37
|
>> So I would appreciate a few pointers to help me transforming an >> Arduino mega into my first Forthduino. After all the help I received so far I thought I let you know how it goes. Matthias Trute <mt...@we...> writes: > That should be easy: just use Linux [...] I got delayed a lot by not being able to download AVRstudio from Atmel. Fun with proprietary software! Today it finally worked (on a borrowed Windows machine, btw. Maybe this is pure accident, or maybe the Atmel webpage does not like certain browsers, or I did make too many typos when filling out the form, who knows?) I installed AvrStudio4 and Update SP3, hope this was right. > 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. > Finally run "ant mega.hex" in the appl/arduino directory and went fine. (I did not test build with make) > you should get two (or more) new files that need to be burned with ISP > or JTAG onto your mega arduino board. avrdude? So I will free two arduinos now (much work), improvise an ISP with one of them (easy), find out which files to burn and how (more work...) more googling and probably man avrdude as I said: slowly progressing... Robert Epprecht |
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 |
From: Robert E. <epp...@so...> - 2010-11-24 07:27:23
|
Sorry for the delay, had to resolve some other issues not directly related. Christian Kellermann <ck...@pe...> writes: > * Matthias Trute <mt...@we...> [101121 19:57]: >> > I'm working with Debian Linux. >> > Never used wine before. >> Running avrasm2 is the only task for my wine installation.. >> install wine and copy the Atmel assembler avrasm2.exe >> together with the AppNotes2 directory somewhere into your filesystem. I found avrasm2.exe, but I don't know how to get AppNotes2 :( www.atmel.com does not let me download it. The software must have telepatic capabilities and feel my uneasiness with downloads where you have to give your snail mail address, phone, ... What's in that directory, btw? > Also note that running a development branch avra does work after > some tweaks. This makes it also accessible for architectures where > wine is not an option. Sounds interesting. Would I still need these AppNotes2? I thought for the first time I try the 'official' way and later try the avra route. Looks like I should change that plan. BTW: isn't there an avr assembler in the Gnu compiler suite? Can I use this one? Or is that avra? (sorry, sounds like silly questions). Thanks for your help so far, Robert, slowly progressing... |
From: Matthias T. <mt...@we...> - 2010-11-24 19:11:07
|
Hi Robert, > I found avrasm2.exe, but I don't know how to get AppNotes2 :( > www.atmel.com does not let me download it. The software must > have telepatic capabilities and feel my uneasiness with downloads > where you have to give your snail mail address, phone, ... > > What's in that directory, btw? There files which contain names for varios addresses. Not really rocket sience, but very useful. You find it if you install a avr studio packet on a windows box. Don't blame me, tell Atmel.... I dropped avra since it has support for very outdated controller types. Another reason is that avra works with the old avr8 assembly syntax which does not cover the newer devices as well. Recent changes in avra may have changes that already, but I did not yet checked it myself. > BTW: isn't there an avr assembler in the Gnu compiler suite? > Can I use this one? the gnu-asm for avr may work, its "only" a matter of syntactic changes. But they will be probably huge. I already considered a switch to it, but delayed it due to the many files that need to be converted. As of now: no, gnu-asm-avr does not work. Matthias |