From: <pao...@fa...> - 2011-06-16 12:49:39
|
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. |