|
From: <vo...@vo...> - 2010-08-29 18:09:42
|
Hello, I've copied the template directory and get weird errors form the words source files. I'm using amforth 3.9. Can anyone give me a comment to work with amforth and how to compile it for ATmega32a? Regards, HUE \a |
|
From: Marcin C. <sa...@sa...> - 2010-08-29 18:24:12
|
On Sun, 29 Aug 2010, Volker Wolfram wrote: > Hello, > > I've copied the template directory and get weird errors form the words > source files. > > I'm using amforth 3.9. > > Can anyone give me a comment to work with amforth and how to compile it > for ATmega32a? Do you have avra source? Can you try patches I have posted to the avra list for a better AVRASM compatibility? 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 --Marcin |
|
From: Matthias T. <mt...@we...> - 2010-08-29 18:27:46
|
Hi Volker, > I've copied the template directory and get weird errors form the words > source files. > > I'm using amforth 3.9. > > Can anyone give me a comment to work with amforth and how to compile it > for ATmega32a? There is a simple answer: avra cannot be used. Use the Avr Assembler 2 from the AVR Studio with wine. Avra did work in the past, but not with the current code. I cannot tell, which amforth version was the last one that avra understood, its long ago. Hopefully the avra people come up again, but there is a long way to go. For them. Matthias |
|
From: <vo...@vo...> - 2010-08-29 18:42:00
|
Matthias Trute <mt...@we...> wrote: > Hi Volker, > > > I've copied the template directory and get weird errors form the words > > source files. > > > > I'm using amforth 3.9. > > > > Can anyone give me a comment to work with amforth and how to compile it > > for ATmega32a? > > There is a simple answer: avra cannot be used. Use the Avr Assembler 2 > from the AVR Studio with wine. Avra did work in the past, but not with > the current code. I cannot tell, which amforth version was the last > one that avra understood, its long ago. > > Hopefully the avra people come up again, but there is a long way to go. > For them. > > Matthias > > > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > Amforth-devel mailing list > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel Hello, I'm using on my Host NetBSD 5.0.2. I'll try to figure it out. Thanks to you all! Regards, HUE \a |
|
From: Marcin C. <sa...@sa...> - 2010-08-29 18:44:02
|
On Sun, 29 Aug 2010, Matthias Trute wrote: > There is a simple answer: avra cannot be used. Use the Avr Assembler 2 > from the AVR Studio with wine. Avra did work in the past, but not with > the current code. I cannot tell, which amforth version was the last > one that avra understood, its long ago. > > Hopefully the avra people come up again, but there is a long way to go. > For them. It should work with the patches I have provided. It seems not to be so much work, maybe I should prepare a new release included. Would you consider adding .overlap http://support.atmel.no/knowledgebase/avrstudiohelp/mergedProjects/AVRASM/Html/directives.html#OVERLAP/NOOVERLAP to places where the code generated overlaps: in drivers/usart-isr-tx.asm: .org UDREaddr jmp_ usart_udre_isr in drivers/usart-isr-rx.asm: .org URXCaddr jmp_ usart_rx_isr Alternatively, we can use .ifdef to skip original interrupt handlers where necessary. --Marcin |
|
From: Matthias T. <mt...@we...> - 2010-08-29 19:27:44
|
Hi, > Would you consider adding .overlap > > http://support.atmel.no/knowledgebase/avrstudiohelp/mergedProjects/AVRASM/Html/directives.html#OVERLAP/NOOVERLAP > > to places where the code generated overlaps: sound like a good idea. If it works for both assemblers I'll do it. May take a few days however... Matthias |
|
From: <vo...@vo...> - 2010-08-29 19:13:14
|
Marcin Cieslak <sa...@sa...> wrote: > On Sun, 29 Aug 2010, Matthias Trute wrote: > > > There is a simple answer: avra cannot be used. Use the Avr Assembler 2 > > from the AVR Studio with wine. Avra did work in the past, but not with > > the current code. I cannot tell, which amforth version was the last > > one that avra understood, its long ago. > > > > Hopefully the avra people come up again, but there is a long way to go. > > For them. > > It should work with the patches I have provided. It seems not to be > so much work, maybe I should prepare a new release included. > > Would you consider adding .overlap > > http://support.atmel.no/knowledgebase/avrstudiohelp/mergedProjects/AVRASM/Html/directives.html#OVERLAP/NOOVERLAP > > to places where the code generated overlaps: > > in drivers/usart-isr-tx.asm: > > .org UDREaddr > jmp_ usart_udre_isr > > in drivers/usart-isr-rx.asm: > > .org URXCaddr > jmp_ usart_rx_isr > > Alternatively, we can use .ifdef to skip original interrupt handlers > where necessary. > > --Marcin > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > Amforth-devel mailing list > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel Hi Marcin, thanks for your advice to patch the sources. I' done this, but I have a problem with the further process now. The compiler says that now: ../../core/words/istore_nrww.asm(55) : Error : Found no label/variable/constant named RWWSRE ../../core/words/istore_nrww.asm(55) : Warning : Constant out of range (-128 <= k <= 255 ). Will be masked AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May 2010) Copyright (C) 1998-2010. Check out README file for more info AVRA is an open source assembler for Atmel AVR microcontroller family It can be used as a replacement of 'AVRASM32.EXE' the original assembler What can I do now? Thanks to you all! HUE \a |
|
From: Marcin C. <sa...@sa...> - 2010-08-29 19:38:58
|
On Sun, 29 Aug 2010, Volker Wolfram wrote: > ../../core/words/istore_nrww.asm(55) : Error : Found no label/variable/constant named > RWWSRE > ../../core/words/istore_nrww.asm(55) : Warning : Constant out of range (-128 <= k <= 255 > ). Will be masked > AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May 2010) > Copyright (C) 1998-2010. Check out README file for more info > > AVRA is an open source assembler for Atmel AVR microcontroller family > It can be used as a replacement of 'AVRASM32.EXE' the original assembler Can you send me your m32.asm ? --Marcin |