Jest to mój pierwszy post, także witam wszystkich
Mój problem polega na tym, że chciałem wgrać program do Atmegi16. Najpierw dokonałem kilku prób w środowisku eclipse, potem próbowałem w AtmelStudio jednak to środowisko nie obsługuje moje programatora a na końcu pozostała opcja z AvrStudio 4.
W AvrStudio już kiedyś pracowałem, dlatego wiedziałem jak odczytać sygnaturę -> odczytana bezproblemowo. Następnie wkleiłem kod i kompiluje -> 0 ostrzeżeń, 0 error's.
W momencie, gdy chciałem wgrać program do procka wyskoczył mi komunikat:
"AVR Studio has detected that the target device is locked for programming. To be able to debug, a chip erase must be performed to celar the lock bits. To lock the device again, the lock bits will have to be programmed manually. Click OK, or click Cancel to abort"
A przecież sprawdzając sygnaturę wchodzi się do trybu programowania, potem wychodzi itd. Jest tam taka opcja, żeby wejśc w fuse. Jak tam wchodzę to też wyskakuje komunikat, że wszedł do funkcji programowania, sprawdził fuse i wyszedł. Wszędzie pokazuje się OK.
I teraz meritum sprawy a mianowicie to co pokazuje mi się w konsoli:
Loaded plugin STK500
Loaded plugin AVR GCC
Loaded partfile: C:\Program Files (x86)\Atmel\AVR Tools\PartDescriptionFiles\ATmega16.xml
Loaded objectfile: C:\Users\Jordan\Documents\default\Praca.elf
JTAG ICE: Warning: Execution stopped on boot loader reset vector.
JTAG ICE: Warning: Boot reset fuses are programmed, but the program entry function is located in the application section. Wrong boot reset fuses will probably cause erronous execution.
JTAG ICE: Warning: If this is not an error, this check can be disabled in the 'Debug' section in the JTAG ICE options.
JTAG ICE: Warning: Reading the program counter, an invalid value (0x7FFFFFFF) was received from the device.
Error reading programcounter
Error reading memory : IO Address:0 Size:64
Error reading memory : REGISTERS Address:0 Size:32
Loaded objectfile: C:\Users\Jordan\Documents\default\Praca.elf
JTAG ICE: Warning: Execution stopped on boot loader reset vector.
JTAG ICE: Warning: Boot reset fuses are programmed, but the program entry function is located in the application section. Wrong boot reset fuses will probably cause erronous execution.
JTAG ICE: Warning: If this is not an error, this check can be disabled in the 'Debug' section in the JTAG ICE options.
JTAG ICE: Warning: Reading the program counter, an invalid value (0x7FFFFFFF) was received from the device.
Error reading programcounter
Error reading memory : IO Address:0 Size:64
Error reading memory : REGISTERS Address:0 Size:32
Program był sprawdzany na symulatorze w Atmel Studio i wszystko działa tak jak założyłem.
Czy ktoś wie jak sobie z tym poradzić?
Jestem przygotowany oczywiście na kupno nowego procka, ale jeżeli na nowym powtórzy się to samo to nie będzie dobrze miesiąc przed oddaniem pracy inżynierskie...
