Siemka, od trzech dni nie moge sie uporać z takim problemem. Sciągam sobie ten kod od Mirka:
http://mirekk36.blogspot.com/2013/05/te ... z-lcd.htmldodaje w main.c "#define __UBRR 1666" (SunRiver tak kazał, jak źle to sie nie czepiać

)
A przy próbie skompilowania linker wypluwa mi to:
Kod:
make all
Building file: ../main.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega328p -DF_CPU=8000000UL -MMD -MP -MF"main.d" -MT"main.d" -c -o "main.o" "../main.c"
../main.c: In function ‘main’:
../main.c:27:2: warning: implicit declaration of function ‘USART_Init’ [-Wimplicit-function-declaration]
../main.c:32:2: warning: implicit declaration of function ‘uart_puts’ [-Wimplicit-function-declaration]
../main.c:40:3: warning: implicit declaration of function ‘uart_getc’ [-Wimplicit-function-declaration]
../main.c: In function ‘show_counter’:
../main.c:125:3: warning: implicit declaration of function ‘uart_putint’ [-Wimplicit-function-declaration]
Finished building: ../main.c
Building target: TERMINAL.elf
Invoking: AVR C Linker
avr-gcc -Wl,-Map,TERMINAL.map -mmcu=atmega328p -o "TERMINAL.elf" ./MK_TERMINAL/mk_term.o ./MKUART/mkuart.o ./main.o
./MK_TERMINAL/mk_term.o: In function `tr_cursor_hide':
mk_term.c:(.text.tr_cursor_hide+0xe): undefined reference to `uart_puts_P'
./MK_TERMINAL/mk_term.o: In function `tr_cls':
mk_term.c:(.text.tr_cls+0x8): undefined reference to `uart_puts_P'
mk_term.c:(.text.tr_cls+0x16): undefined reference to `uart_puts_P'
mk_term.c:(.text.tr_cls+0x20): undefined reference to `uart_puts_P'
./MK_TERMINAL/mk_term.o: In function `fill_line':
mk_term.c:(.text.fill_line+0x1a): undefined reference to `uart_putc'
./MK_TERMINAL/mk_term.o: In function `tr_attr':
mk_term.c:(.text.tr_attr+0x16): undefined reference to `uart_putc'
mk_term.c:(.text.tr_attr+0x1e): undefined reference to `uart_putc'
mk_term.c:(.text.tr_attr+0x28): undefined reference to `uart_putc'
mk_term.c:(.text.tr_attr+0x30): undefined reference to `uart_putc'
./MK_TERMINAL/mk_term.o:mk_term.c:(.text.tr_attr+0x38): more undefined references to `uart_putc' follow
./MK_TERMINAL/mk_term.o: In function `tr_locate':
mk_term.c:(.text.tr_locate+0x20): undefined reference to `uart_putint'
mk_term.c:(.text.tr_locate+0x28): undefined reference to `uart_putc'
mk_term.c:(.text.tr_locate+0x34): undefined reference to `uart_putint'
mk_term.c:(.text.tr_locate+0x40): undefined reference to `uart_putc'
./main.o: In function `rysuj_menu':
main.c:(.text.rysuj_menu+0x1c): undefined reference to `uart_puts'
main.c:(.text.rysuj_menu+0x36): undefined reference to `uart_puts'
main.c:(.text.rysuj_menu+0x46): undefined reference to `uart_puts'
main.c:(.text.rysuj_menu+0x56): undefined reference to `uart_puts'
main.c:(.text.rysuj_menu+0x70): undefined reference to `uart_puts'
./main.o:main.c:(.text.show_adc+0x1c): more undefined references to `uart_puts' follow
./main.o: In function `show_adc':
main.c:(.text.show_adc+0x84): undefined reference to `uart_getc'
./main.o: In function `show_counter':
main.c:(.text.show_counter+0x1c): undefined reference to `uart_puts'
main.c:(.text.show_counter+0x56): undefined reference to `uart_puts'
main.c:(.text.show_counter+0x70): undefined reference to `uart_puts'
main.c:(.text.show_counter+0x86): undefined reference to `uart_putint'
main.c:(.text.show_counter+0x8e): undefined reference to `uart_puts'
main.c:(.text.show_counter+0xa0): undefined reference to `uart_puts'
main.c:(.text.show_counter+0xb6): undefined reference to `uart_getc'
./main.o: In function `main':
main.c:(.text.startup.main+0x4): undefined reference to `USART_Init'
main.c:(.text.startup.main+0x14): undefined reference to `uart_puts'
main.c:(.text.startup.main+0x2e): undefined reference to `uart_getc'
main.c:(.text.startup.main+0x54): undefined reference to `uart_puts'
collect2: error: ld returned 1 exit status
make: *** [TERMINAL.elf] Błąd 1
Moge tylko dodać że jeżeli powodem mogą być sterowniki do konwertera rs-232 to będę musiał je przeinstalować. Zamiast D2XX od FTDI zainstalowałem wolne (w rozumieniu środowiska GNU

) sterowniki libftdi z repozytoriów. System oczywiście linux.
A tak oprócz tego to inne programy kompilują się normalnie

Z góry dzięki za jakąkolwiek pomoc
