logo elektroda
logo elektroda
X
logo elektroda
REKLAMA
REKLAMA
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

USBasp + AVRdude- jak programować??

neo62 23 Lut 2009 16:11 15307 6
REKLAMA
  • #1 6192800
    neo62
    Poziom 16  
    Więc jak w temacie, jak zabrać się za programowanie?? Zrobiłem sobie do tego prostą płytkę testową na ATmega8. Jak sprawdzić czy wszystko działa??


    USBasp + AVRdude- jak programować??
  • REKLAMA
  • #2 6199254
    M. S.
    Poziom 34  
    1. Napisz program / zdobądź wsad do procka *.hex.
    2. Uruchom nakładkę na AVRdude - avrdude-gui.exe.
    3. Podaj ścieżki dostępu do dude i do pliku konfiguracyjnego.
    4. Wybierz proca i programator.
    5. Podaj ścieżkę do hex'a.
    6. Kliknij Execute.
    7. Poczekaj do końca programowania.

    USBasp + AVRdude- jak programować??

    A tu jeszcze lepsza nakładka wymagająca jednak zainstalowania Javy

    USBasp + AVRdude- jak programować??

    Przy programowaniu procków z zegarem 1MHz trzeba przełączyć programator na wolniejszą pracę.
  • REKLAMA
  • REKLAMA
  • #4 6203150
    maly_elektronik
    Poziom 23  
    Nie napisałeś w jakim systemie operacyjnym :) Jeżeli to jakaś dystrybucja linuxa to w terminalu:
    1.sudo apt-get install avrdude (powoduje zainstalowanie avrdude)
    2.sudo avrdude -c usbasp -p m8 -U flash:w:twoj_plik.hex (spowoduje zaprogramowanie procesora plikiem twoj_plik,hex)

    P.S.
    Oczywiście w czasie procesu programowania musisz sie znaleźć w katalogu, w którym znajduje się plik twoj_plik,hex (aby to wykonać w terminalu cd twoj_katalog)

    Pozdrawiam maly_elektronik
  • #5 6203625
    neo62
    Poziom 16  
    Wyświetla mi sie taki komunikat:


    avrdude: Can't find programmer id "usbasp"

    Valid programmers are:
    abcmini = ABCmini Board, aka Dick Smith HOTCHIP [D:\avrdude\bin\avrdude.conf:314]
    picoweb = Picoweb Programming Cable, http://www.picoweb.net/ [D:\avrdude\bin\avrdude.conf:304]
    sp12 = Steve Bolt's Programmer [D:\avrdude\bin\avrdude.conf:293]
    alf = Nightshade ALF-PgmAVR, http://nightshade.homeip.net/ [D:\avrdude\bin\avrdude.conf:277]
    bascom = Bascom SAMPLE programming cable [D:\avrdude\bin\avrdude.conf:267]
    dt006 = Dontronics DT006 [D:\avrdude\bin\avrdude.conf:257]
    pony-stk200 = Pony Prog STK200 [D:\avrdude\bin\avrdude.conf:245]
    stk200 = STK200 [D:\avrdude\bin\avrdude.conf:229]
    pavr = Jason Kyle's pAVR Serial Programmer [D:\avrdude\bin\avrdude.conf:223]
    butterfly = Atmel Butterfly Development Board [D:\avrdude\bin\avrdude.conf:217]
    avr910 = Atmel Low Cost Serial Programmer [D:\avrdude\bin\avrdude.conf:211]
    stk500 = Atmel STK500 [D:\avrdude\bin\avrdude.conf:205]
    avrisp = Atmel AVR ISP [D:\avrdude\bin\avrdude.conf:199]
    bsd = Brian Dean's Programmer, http://www.bsdhome.com/avrdude/ [D:\avrdude\bin\avrdude.conf:188]
  • REKLAMA
  • #7 6207618
    neo62
    Poziom 16  
    Teraz wyskakuje mi coś takiego:

    avrdude.exe: WARNING: -E option not supported by this programmer type

    avrdude.exe: error: programm enable: target doesn't answer. 1
    avrdude.exe: initialization failed, rc=-1
    avrdude.exe: AVR device initialized and ready to accept instructions

    Reading | ################################################## | 100% 0.02s

    avrdude.exe: Device signature = 0x000000
    avrdude.exe: Yikes! Invalid device signature.
    avrdude.exe: Expected signature for ATMEGA8 is 1E 93 07
    avrdude.exe: NOTE: FLASH memory has been specified, an erase cycle will be performed
    To disable this feature, specify the -D option.
    avrdude.exe: erasing chip
    avrdude.exe: error: programm enable: target doesn't answer. 1
    avrdude.exe: reading input file "C:\Documents and Settings\ja\Pulpit\rgb.hex"
    avrdude.exe: input file C:\Documents and Settings\ja\Pulpit\rgb.hex auto detected as Intel Hex
    avrdude.exe: writing flash (64 bytes):

    Writing | ################################################## | 100% 0.50s

    avrdude.exe: 64 bytes of flash written
    avrdude.exe: verifying flash memory against C:\Documents and Settings\ja\Pulpit\rgb.hex:
    avrdude.exe: load data flash data from input file C:\Documents and Settings\ja\Pulpit\rgb.hex:
    avrdude.exe: input file C:\Documents and Settings\ja\Pulpit\rgb.hex auto detected as Intel Hex
    avrdude.exe: input file C:\Documents and Settings\ja\Pulpit\rgb.hex contains 64 bytes
    avrdude.exe: reading on-chip flash data:

    Reading | ################################################## | 100% 0.37s

    avrdude.exe: verifying ...
    avrdude.exe: 64 bytes of flash verified

    avrdude.exe done. Thank you.
REKLAMA