From: Erich W. <ew....@na...> - 2011-01-22 09:15:25
|
Hello, On 01/21/2011 04:18 AM, Elliott Chapin wrote: > In my little experience: > > Amforth as published seems to be part linux-nature and part > windows-nature: text files and directory paths are linux but we are > asked to work in windows avrstudio. Conversion utilities do not give > consistent results, and some files need to be edited; workarounds are > time consuming for me so far. Avrstudio for linux is only for 32-bit > cpu's. So I am hoping for a unified windows version, or linux avrstudio > to be extended to handle 16, 8 -bit cpu's - because I bought an Arduino Uno. avrstudio: You are not forced to use AVR Studio (the IDE). You are forced to extract the include files from AVR Studio, because license obligations do not permit anyone else to distribute those files, or AVR Studio itself. You are not forced to use the AVRAssembler2 that comes with AVR Studio. You can do with avra. However, that means a. you either stick to older controllers, where all files from Atmel come in the Assembler Version 1 format, b. or you need to patch the newest avra (1.3.0) with patches contributed by M.Cieslak. These patches have not been included in avra for reasons I don't know. I have built a patched version of avra and use it routinely. "Works for me (tm)". quote from Marcins mail on amforth-devel (2010-08-15) > I have posted patches to the newest avra (trunk, they might > work with 1.3.0 release) on Sourceforge: > > 3044547 Error:: ldi can only use a high register (r16 - r31) > https://sourceforge.net/tracker/?func=detail&aid=3044547&group_id=55499&atid=477233 > > 3044545 movw y, z causes Error:: No register associated with y and z > https://sourceforge.net/tracker/?func=detail&aid=3044545&group_id=55499&atid=477233 > > 3044541 .ifndef does not work (Can't redefine constant, use .SET) > https://sourceforge.net/tracker/?func=detail&aid=3044541&group_id=55499&atid=477233 > Help to get avra in shape to completely support Version 2 of Atmels assembly format would be highly appreciated! Linux or Windows: For me working with amforth is a Linux activity, with occasional excursions into wine+AVRStudio|AVRAssembler2 land, mainly to see, if using the windows stuff changes anything if on a bug hunt. And btw, I'm running wine on a amd64 system. Editing text files: There is *no* way around this. You absolutely must configure the amforth system for your values of . exact controller . exact crystal frequency . exact fuse settings . exact baud rate . exact settings of your programming dongle These are the absolutely required minimum. And no, I don't want the amforth system to take any guesses. But this is not everything. I routinely include a number of words via dict_appl.inc. Again, amforth provides the minimum to run, but I want more, and that "more" is certainly different from your version of "more". I routinely use a much larger Makefile, just due to the way I choose to work. And so on. My reasoning may be inaccurate, your milage may vary ... Hope that helps, have a nice day. Erich |