autor | správa |
olisoft modelár Príspevkov: 321 Moje modely Poslať správu |
Mnohi, co flashujete T9x ste sa stretli s "chybovou hlaskou" pri citani/zapise cez standardne zohnatelny USB ASP programator (ebay, HK, ...). avrdude.exe: warning: cannot set sck period. please check for usbasp firmware up date. Nie je to prava chyba, ide skor o hlasku avrdude, ze mu programator neodpovedal na poziadavku nastavenia komunikacnej rychlosti. Nasi cinski priatelia totiz vyuzivaju upraveny firmware do ktoreho implementovali "autotiming", takze vo vacsine pripadov vsetko funguje aj napriek uvedenej hlaske. Moze sa ale stat, ze pri nastavovani fuses, programovani "cisteho" procesora a podobne nebude automaticke casovanie fungovat dobre... Ak mate dva programatory (pripadne moznost si podobny pozicat), je situacia skoro vyriesena. Prepojte oba programatory dodavanym kablom a na programovanom kuse (nesmie byt zasunuty v PC!) prepojite na to urcene plosky. V pripade, ze programator ma prepojku pre napajanie programovaneho zariadenia, tato musi ostat zapojena! Do adresara, v ktorom mate avrdude (adresar programu companion, alebo eePe) nakopirujete subor s novym FW (main.hex). Pre skusku prepojenia (a komunikacie programatorov) spustite vycitanie aktualneho obsahu pamate, musi prebehnut bez problemov! avrdude.exe -c usbasp -p m8 -U flash:r:test.bin:r toto do toho isteho adresara ulozi cca 4kb velky subor. Priklad vypisu pri citani: D:\PortableApps\eePe>avrdude.exe -c usbasp -p m8 -U flash:r:test.bin:r avrdude.exe: warning: cannot set sck period. please check for usbasp firmware up date. avrdude.exe: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.02s avrdude.exe: Device signature = 0x1e9307 avrdude.exe: reading flash memory: Reading | ################################################## | 100% 4.65s avrdude.exe: writing output file "D:/PortableApps/eePe/test14062013.bin" avrdude.exe: safemode: Fuses OK avrdude.exe done. Thank you. D:\PortableApps\eePe> Ak vsetko prebehlo bez problemov, pomocou uvedeneho prikazu napalite novy firmware do vasho programatora: avrdude -c usbasp -p atmega8 -P usb -U flash:w:main.hex Priklad vypisov pri programovani: D:\PortableApps\eePe>avrdude -c usbasp -p atmega8 -P usb -U flash:w:main.hex avrdude: warning: cannot set sck period. please check for usbasp firmware update . avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.02s avrdude: Device signature = 0x1e9307 avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: warning: cannot set sck period. please check for usbasp firmware update . avrdude: reading input file "main.hex" avrdude: input file main.hex auto detected as Intel Hex avrdude: writing flash (3758 bytes): Writing | ################################################## | 100% 2.41s avrdude: 3758 bytes of flash written avrdude: verifying flash memory against main.hex: avrdude: load data flash data from input file main.hex: avrdude: input file main.hex auto detected as Intel Hex avrdude: input file main.hex contains 3758 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 2.13s avrdude: verifying ... avrdude: 3758 bytes of flash verified avrdude: safemode: Fuses OK avrdude done. Thank you. D:\PortableApps\eePe> A HOTOVO, mame programator, ktory netrpi "chybou" SCK, dokonca podla mojho pozorovania komunikuje rychlejsie s pripojenymi procesormi. Inspiroval som sa tymto navodom: http://openrcforums.com/forum/viewtopic.php?f=10&t=1363#p29615 plosky, ktore je potrebne prepojit pri programovani: firmware: main.hex |
minno modelár Príspevkov: 28 Moje modely Poslať správu |
nemate niekto poziciat/kupit programator ? potreboval by som flashnut ten svoj..som z BA..napiste..dakujem |
EcoOne modelár Príspevkov: 512 Moje modely Poslať správu |
Autor: EcoOne
Správa zaslaná: 29. 11. 2016 o 22:00
zdravim, mam programator, napisal som ti spravu |