Consola:
**** Clean-only build of configuration Release for project ADC ****
make clean
rm -rf ./myuart/myuart.o ./main.o ./myuart/myuart.d ./main.d ADC.eep ADC.hex ADC.lss sizedummy ADC.elf
**** Build Finished ****
**** Build of configuration Release for project ADC ****
make all
Building file: ../myuart/myuart.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=1000000UL -MMD -MP -MF"myuart/myuart.d" -MT"myuart/myuart.d" -c -o "myuart/myuart.o" "../myuart/myuart.c"
Finished building: ../myuart/myuart.c
Building file: ../main.c
Invoking: AVR Compiler
avr-gcc -Wall -Os -fpack-struct -fshort-enums -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=1000000UL -MMD -MP -MF"main.d" -MT"main.d" -c -o "main.o" "../main.c"
Finished building: ../main.c
Building target: ADC.elf
Invoking: AVR C Linker
avr-gcc -Wl,-Map,ADC.map -mmcu=atmega32 -o "ADC.elf" ./myuart/myuart.o ./main.o
Finished building target: ADC.elf
Invoking: AVR Create Extended Listing
avr-objdump -h -S ADC.elf >"ADC.lss"
Finished building: ADC.lss
Create Flash image (ihex format)
avr-objcopy -R .eeprom -O ihex ADC.elf "ADC.hex"
Finished building: ADC.hex
Create eeprom image (ihex format)
avr-objcopy -j .eeprom --no-change-warnings --change-section-lma .eeprom=0 -O ihex ADC.elf "ADC.eep"
Finished building: ADC.eep
Invoking: Print Size
avr-size --format=avr --mcu=atmega32 ADC.elf
AVR Memory Usage
----------------
Device: atmega32
Program: 522 bytes (1.6% Full)
(.text + .data + .bootloader)
Data: 14 bytes (0.7% Full)
(.data + .bss + .noinit)
Finished building: sizedummy
**** Build Finished ****
__UBRR:
język c
Musisz się zalogować, aby zobaczyć kod źródłowy. Tylko zalogowani użytkownicy mogą widzieć kod.
Putty:
Speed: 9600
Data bits: 8
Stop bits: 1
Parity: None
Flow control: None
Taktowanie z wewnętrznego zegara 1MHz.
------------------------ [ Dodano po: 34 minutach ]Problem rozwiązany.
Zmieniłem taktowanie na 8MHz na zegarze procka oraz ustawiłem taką samą prędkość w ustawieniach projektu.