From: <ha...@hu...> - 2007-04-30 05:16:54
|
Hi Matthias, 2007/4/29, Matthias Trute <mt...@we...>: > >> What's a flashless AVR??? Sounds like sodium free salt ;=) > > > > It is one that uses the AVR_Core of OpenCores. > > Cool stuff. What hardware do you use for it? Not that > I want to work with it, but to get a feeling for it... I am using the Spartan 3E Starter Kit (http://shop.trenz-electronic.de/catalog/product_info.php?cPath=1_47&products_id=92&language=en), which is pretty cheap and has all sorts of peripheral chips. > > Do you have a tool that aids in translating Forth to Assembler, > > I don't _have_ such a tool, I _am_ that tool ;=) Given that the routines I need are really simple, maybe I can use you as the tool? My mechanism may also fill the needs of others: I have set up the necessary scripting that converts one or more forth files (using "\ include" as syntax) to a hex file that can be flashed. The source is flashed so that the last adress is right below the boot block. Comments and while space are stripped. The compile-from-rom forth program changes the input vectors so that characters are read from ROM until the last byte below the boot block has been hit. Then, the input vectors are set back to rx0/rx0?. 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. Presently, my automatism stops after having compiled amforth and sent both amforth and the source to be compiled to the target, because I first need to upload the compile-from-rom stuff through the serial port. It may even be good to add some more code so that the source can be viewed on the target (in the tradition of making the source code available to the "customer"). 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. Thanks for your support, Hans |