From: <ha...@hu...> - 2007-04-30 13:39:06
|
Hi Matthias, 2007/4/30, Matthias Trute <mt...@we...>: > > Together with my scripting mechanics (and the Forth file translated to > > assembler), it will be possible to build a complete amforth system > > from source without having to go round-trip to the target. > > That would be a host based compiler. Do you know the avr assembler > from Daniel Kryzcena? (krue.net). It is written for gforth and he > makes his avrforth with it. I have not looked at it, and the one thing I love most about amforth is the fact that it is completely target-based. Being able to hack through a system interactively and to try out things and redefine words on the fly is just great. I don't want a host-target configuration. My mechanism is more useful for automatic deployment. I usually put the Forth source I work with into an open editor and then cut and paste between my editor and the terminal program connected to the AVR. At some point in time, I decide that I need to start with a fresh amforth (either because there is a new version, because my flash is full or because I want to move from one AVR to another). In that case, I want to use my source file and replicate the installation on another AVR, from scratch, with as little manual interaction as possible. > You drive the idea of a "stand-alone" system to it's limit, don't you? Yeah, maybe. Also the idea of "Open Source" makes most sense if the source is always delivered with the system. :) > > For my FPGA application, I will propably put the source into the > > serial flash and compile from there, but I first want to have this > > running on a real AVR. > > What's wrong with your io redirect? Put the base system into whatever > the flash is and let KEY read from eeprom Exactly that! It is just the missing link from *.asm + *.frt to a hex file that automatically starts when I switch on the power of the AVR that bothers me :) > btw: do you want to publish this module? You mean the compile-from-rom stuff? Sure, if anyone wants to use it, take it. If someone asks, I'll also put some more comments and options into the perl and makefile stuff. Just let me know. > [1] I found a stupid error in the interrupt system. For my atmegas > timer0 now increases a variable with your settings for an > hout by now... See svn trunk. Thanks! I'll check it out later on! Cheers, Hans |