From: Hannu V. <vu...@ms...> - 2012-08-03 09:16:45
|
Sorry. Maybe I wasn't quite clear. Im building Amforth 4.9 $ avra --version AVRA: advanced AVR macro assembler Version 1.3.0 Build 1 (8 May 2010) I think I'm getting on with this. problems with .overlap org errors required git version of Avra. http://permalink.gmane.org/gmane.comp.lang.forth.amforth/1047 instructed to add one .equ MCUSR = MCUCSR line. bm_PARITY problem was solved changing order of serial setting and driver. I also had wrong appnotes :( After I copied from avrassembler2 appnotes, amfort compiled. However binary doesn't work :( Anyway I was able to compile and flash in AVRstudio. With avra I still have these warnings: ../../core/words/brackettick.asm(6) : Warning : A .DB segment with an odd number of bytes is detected. A zero byte is added. ../../core/words/tick.asm(6) : Warning : A .DB segment with an odd number of bytes is detected. A zero byte is added. done To get everything working some investigation should be done. However ATmega128 is quite old controller and no-one uses it. (except me) Best regards, Hannu Vuolasaho ---------------------------------------- > Date: Thu, 2 Aug 2012 18:48:40 +0200 > From: ew....@na... > To: amf...@li... > Subject: Re: [Amforth] Compiling Amforth 4.9 > > Hello Hannu, > > I just checked: > + avra built from git: > 21f54ca HEAD@{0}: pull : Fast-forward > cf495f3 HEAD@{1}: clone: from > git://avra.git.sourceforge.net/gitroot/avra/avra > > + I can compile amforth-4.2 for atmega32 > + I can compile amforth-4.5 for atmega32 as well > I have not checked whether they actually work. > + I can compile amforth-4.6 for atmega32 --- but it doesn't > work! The same files compiled with wine+avrasm2 do work. I sort > of remember, that avra failed on me before with amforth 4.6. I > have never gotten around to find the commit in amforth, which > made avra choke. > > So: > a. what version of avra are you using? Maybe you have a long > forgotten version from the git repo somewhere but not in PATH? > b. Are you still using amforth 4.5? If so, > c. can you still compile for the 328? > Maybe this narrows down the possible causes. Hopefully someone > else has more experience with the atmega128. > > Cheers, > Erich > > On 08/02/2012 05:59 AM, Hannu Vuolasaho wrote: >> >> Hello everybody! >> >> I once compiled succesfully Amforth 4.5 and have been used it for a until last week. My MCU changed from ATMega 328 to ATMega128. >> >> Now I need to build Amforth for that and I can't get it done. I've copied from program files/Atmel/AVR Tools/avrAssembler/Appnotes to amforth's root as Atmel/Appnotes2 copied template to >> my_project_amforth and chaged MCU and assembler from makefile. From template.asm I've changed the clockspeed to right. >> >> I'm getting this out of make: >> >> $ make >> avra -I ../../Atmel/Appnotes2 -I ../../core -I ../../core/devices/atmega128 --listmac -l template.lst -m template.map template.asm >> 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 >> shipped with AVR Studio. We do not guarantee full compatibility for avra. >> >> AVRA comes with NO WARRANTY, to the extent permitted by law. >> You may redistribute copies of avra under the terms >> of the GNU General Public License. >> For more information about these matters, see the files named COPYING. >> >> Pass 1... >> ../../core/devices/atmega128/device.asm(52) : Error : Unknown directive: .OVERLAP >> ../../core/devices/atmega128/device.asm(122) : Error : Unknown directive: .NOOVERLAP >> template.asm(34) : Error : Found no label/variable/constant named bm_ASYNC >> template.asm(38) : Error : Found no label/variable/constant named bm_ENABLE_TX >> ../../core/words/cold.asm(12) : Error : [Macro: ../../core/macros.asm: 51:] Found no label/variable/constant named MCUSR >> ../../core/words/cold.asm(16) : Error : [Macro: ../../core/macros.asm: 59:] Found no label/variable/constant named MCUSR >> ../../core/amforth.asm(18) : Error : Found no label/variable/constant named NRWW_START_ADDR >> ../../core/amforth-eeprom.inc(56) : Error : .BYTE directive can only be used in data segment (.DSEG) >> Error: Overlapping Code-segments : >> Start = 0x0004, End = 0x0004, Length = 0x0001 >> Start = 0x0004, End = 0x03C6, Length = 0x03C3 >> Please check your .ORG directives ! >> Error: Overlapping Code-segments : >> Start = 0x0006, End = 0x0006, Length = 0x0001 >> Start = 0x0004, End = 0x03C6, Length = 0x03C3 >> Please check your .ORG directives ! >> Error: Overlapping Code-segments : >> Start = 0x0008, End = 0x0008, Length = 0x0001 >> Start = 0x0004, End = 0x03C6, Length = 0x03C3 >> Please check your .ORG directives ! >> Error: Overlapping Code-segments : >> Start = 0x000A, End = 0x000A, Length = 0x0001 >> Start = 0x0004, End = 0x03C6, Length = 0x03C3 >> Please check your .ORG directives ! >> <<SNIP>> >> make: *** [template.hex] Error 1 >> >> Now. What did I do wrong? Except been using Linux as desktop,,, I've tried to read amforth.pdf and follow those instructions but please someone point out my mistake. >> >> Best Regards, >> Hannu Vuolasaho >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Amforth-devel mailing list for http://amforth.sf.net/ >> Amf...@li... >> https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel |