Hello,

> But there are much errors for the ATMega32:
> 
> @/srv/test/amforth-5.1/appl/template$ make template.hex
> wine ../../Atmel/avrasm2.exe -I ../../Atmel/Appnotes -I ../../core
> -I ../../core/devices/atmega32 -fI -v0 -e template.eep.hex -l
> template.lst template.asm
> err:winedevice:ServiceMain driver L"IOPort" failed to load
> ../../core\drivers/usart_0.asm(1): error: Undefined symbol: UBRR0L
> ../../core\drivers/usart_0.asm(2): error: Undefined symbol: UBRR0H
> ../../core\drivers/usart_0.asm(3): error: Undefined symbol: UCSR0C
> ../../core\drivers/usart_0.asm(4): error: Undefined symbol: UCSR0B
> ../../core\drivers/usart_0.asm(5): error: Undefined symbol: UCSR0A
> ../../core\drivers/usart_0.asm(12): error: Undefined symbol: RXC0
> ../../core\drivers/usart_0.asm(13): error: Undefined symbol: UDRE0
> ../../core\drivers/usart_0.asm(14): error: Undefined symbol: TXEN0
> ../../core\drivers/usart_0.asm(15): error: Undefined symbol: RXEN0
> ../../core\drivers/usart_0.asm(16): error: Undefined symbol: RXCIE0
> ../../core\drivers/usart_0.asm(17): error: Undefined symbol: UDRIE0
> 
> Assembly failed, 11 errors, 12 warnings
> make: *** [template.hex] Fehler 1

For the atmega32 you need to edit one line
in template.asm

 ; define which usart to use.
-.include "drivers/usart_0.asm"
+.include "drivers/usart.asm"

I assume you use the latest amForth (5.1 or trunk). In older versions
the following lines were added:
 ; Baud settings
 .equ BAUD = 115200
 ; additional .equs for "old fashioned" mcu with usart, not usart0
+.equ TXEN0  = TXEN
+.equ RXEN0  = RXEN
+.equ RXCIE0 = RXCIE
+.equ UCSZ00 = UCSZ0

atmega32 is a member of the older atmega family, there are more, which
need this change (usart instead of usart_0).

Good luck,
Erich

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to