Hi guys,
I’m trying to compile a system for an ATMEGA16 board.
It gives errors and I’m not able to go forth.
 
I followed the procedure suggested in official docs:
copy the template folder in apps to a new folder “atmega16” and then modify 
makefile and template.asm.
Attached you’ll find my makefile and my modified template “atmega16.asm”.
 
In the makefile, the line:
AVRASM=wine $(DIR_ATMEL)/avrasm2.exe -I $(DIR_ATMEL)/Appnotes2
Produces the error:
make (e=2): file not found.
make: *** [atmega16.hex] Error 2
 
instead the line:
AVRASM=$(DIR_ATMEL)/avrasm2.exe -I $(DIR_ATMEL)/Appnotes2
(without wine) launches avrasm2 (AVR Studio 4.18 SP3) that gives 1 error and 11 
warnings.
Here the listing of errors:
 
atmega16.asm(26): warning: Use of undefined or forward referenced symbol 
'TXEN0' in .equ/.set
atmega16.asm(29): warning: Use of undefined or forward referenced symbol 
'TXEN0' in .equ/.set
atmega16.asm(34): warning: Use of undefined or forward referenced symbol 
'UCSZ00' in .equ/.set
../../core\drivers/usart_0.asm(1): warning: Use of undefined or forward 
referenced symbol 'UBRR0L' in .equ/.set
../../core\drivers/usart_0.asm(2): warning: Use of undefined or forward 
referenced symbol 'UBRR0H' in .equ/.set
../../core\drivers/usart_0.asm(3): warning: Use of undefined or forward 
referenced symbol 'UCSR0C' in .equ/.set
../../core\drivers/usart_0.asm(4): warning: Use of undefined or forward 
referenced symbol 'UCSR0B' in .equ/.set
../../core\drivers/usart_0.asm(5): warning: Use of undefined or forward 
referenced symbol 'UCSR0A' in .equ/.set
../../core\drivers/usart_0.asm(11): warning: Use of undefined or forward 
referenced symbol 'UDRIE0' in .equ/.set
../../core\drivers/usart_0.asm(11): error: Invalid redefinition of 'UDRIE'
../../core\drivers/usart_0.asm(12): warning: Use of undefined or forward 
referenced symbol 'RXC0' in .equ/.set
../../core\drivers/usart_0.asm(13): warning: Use of undefined or forward 
referenced symbol 'UDRE0' in .equ/.set
 
Assembly failed, 1 errors, 11 warnings
make: *** [atmega16.hex] Error 1
 
I think you can reproduce yourself the error.
 
Please help me.
Thank you.



------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Amforth-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to