Re: [Flashforth-devel] assemble FlashForth for Arduino Uno
Brought to you by:
oh2aun
From: <mik...@fl...> - 2017-07-17 12:59:21
|
HiThe atmega 328 has only one uart, uart0. No need to change the operator uart. The avrasm minor version shud not matter. And if you get a working compilation I suppose your include file is ok. M. ------ Original message------From: Bruce CorbinDate: Mon, 17 Jul 2017 15:08To: mik...@fl...;fla...@li...;Cc: Subject:Re: [Flashforth-devel] assemble FlashForth for Arduino Uno Mikael, Thank you. That was very helpful. So far I have not found the exact assembler build you used. Also by comparing list files I don't think I have the exact same m328def.inc file, but I can assemble the source and get a hex file that is an exact match to the downloaded hex file. A huge step forward. My second step is to assemble the source to use the serial port. With external logic level to RS-232 level translators I will then have a Forth machine that communicates over RS-232. It appears that I need to edit the config.inc file and change OPERATOR_UART from 0 to 1. When I do this I get fatal errors during assembly. My initial assumption is that this is caused by the m328def.inc files that is very similar to yours but based upon the list files I don't think they are an exact match. Before I end up wasting too much time I'll ask three questions: 1) Is changing OPERATOR-UART the correct procedure to reassemble for the traditional serial port? 2) Is the exact m328def.inc file that you used available for download? 3) The avrasm2 file that I found is a few builds newer than yours. I don't think this is a problem but it is different. I didn't find your exact assembler on the AmForth site. Yours was 2.1.30. The one I found was 2.1.43. Do you think this is a problem? Thank you, Bruce On 07/16/2017 01:19 AM, mik...@fl... wrote: Hi, You need to use wine and avrasm2.exe from atmel studio4. That is my dev toolchain, works just fine on linux. Amforth used to have avrasm2 in its download area. M. ------ Original message------ From: Bruce Corbin Date: Sun, 16 Jul 2017 06:45 To: fla...@li...; Cc: Subject:[Flashforth-devel] assemble FlashForth for Arduino Uno I have been trying for hours to assemble FlashForth for the Arduino Uno. Soon I would like to compile to have it use the serial port (for an RS-232 console) but as my starting point I am trying to assemble the downloaded ff-atmega.asm file to generate the downloaded hex file. It seems like this should be both trivial and documented by one or two paragraphs on the download page that contains the source and hex.I have downloaded the AVR Studio for Windows, the Atmel 8-Bit AVR to olchain for Linux, avra for Linux and one or two other assemblers. So far the best I have been able to do is about 40-50 errors and warnings when using avra. If I recall correctly the error count was well over a thousand with Atmel AVR Studio. The downloaded Atmel toolchain also had a lot of reported errors.What assembler works? What assembler did the FlashForth developer(s) use?It looks like the code may have been assembled in a C environment since there is a comment in it that is commented out by a double slash. Some of my reported errors are also due to "strlen" in the source which again suggests a "C" environment to me. High in the downloaded listing file is "AVRASM ver. 2.1.30 avr/src/ff-atmega.asm Wed Mar 22 22:08:36 2017" but AVRASM isn't in the toolchain I downloaded from Atmel.Linux is by far my preferred OS but I can use Windows if necessary.I'm just trying to get started. Thank you for your help.----- -------------------------------------------------------------------------Check out the vibrant tech community on one of the world's mostengaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________Flashforth-devel mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/flashforth-devel |