Witam
Po dłuższej przerwie(szkoła/matury) powróciłem do programowania.
Zainstalowałem eclipse mars według poradnika, napisałem prosty program, podłączyłem i wgrałem.
Niestety coś jest źle gdyż nie działa tak jak powinno.
Na początek program:
język c
Musisz się zalogować, aby zobaczyć kod źródłowy. Tylko zalogowani użytkownicy mogą widzieć kod.
Oraz logi z konsoli:
Kod:
Launching C:\Eclipse_avrdude\AVRDUDE\avrdude -pm644p -cusbasp -Uflash:w:106_test_uc_atmega644pa.hex:a
Output:
Please wait ...
avrdude_mk.exe: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude_mk.exe: Device signature = 0x1e960a
avrdude_mk.exe: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude_mk.exe: erasing chip
avrdude_mk.exe: reading input file "106_test_uc_atmega644pa.hex"
avrdude_mk.exe: input file 106_test_uc_atmega644pa.hex auto detected as Intel Hex
avrdude_mk.exe: writing flash (158 bytes):
Writing | ################################################## | 100% 0.09s
avrdude_mk.exe: 158 bytes of flash written
avrdude_mk.exe: verifying flash memory against 106_test_uc_atmega644pa.hex:
avrdude_mk.exe: load data flash data from input file 106_test_uc_atmega644pa.hex:
avrdude_mk.exe: input file 106_test_uc_atmega644pa.hex auto detected as Intel Hex
avrdude_mk.exe: input file 106_test_uc_atmega644pa.hex contains 158 bytes
avrdude_mk.exe: reading on-chip flash data:
Reading | ################################################## | 100% 0.06s
avrdude_mk.exe: verifying ...
avrdude_mk.exe: 158 bytes of flash verified
avrdude_mk.exe: safemode: Fuses OK
avrdude_mk.exe done. Thank you.
Compiled special for http://forum.atnel.pl (v5.11.1)
avrdude finished
Procesor atmega644pa podłączyłem pod +5V z zasilacza komputerowego(mierzyłem miernikiem 5,17V) do tego żarówkę 20W +12V aby zasilacz poprawnie działał. Taktowanie wewnętrzne 8Mhz bez jtag
Procesor siedzi na mojej płytce którą kiedyś zrobiłem. Dioda led na mini stykówce. Programator usbasp którego kiedyś zrobiłem.
Problem polega na tym że ta dioda ciągle miga około 10-15 razy na sekundę a z kodu wynika że ma tylko świecić. Gdy usunę kod z pętli while dioda nie świeci się. Nie wiem co może być przyczyną

Robiłem kasowanie mkavrkalkulatorem i na nowo wgrywałem lecz za każdym razem to samo.
Proszę o pomoc
Pozdrawiam