Arduino jako AVR programátor

Diskuze a poradna o programátorech a programování různých obvodů

Moderátor: Moderátoři

Odpovědět
Zpráva
Autor
Uživatelský avatar
daavid
Příspěvky: 146
Registrován: 13 kvě 2013, 02:00

#61 Příspěvek od daavid »

AB1 píše:http://www.nongnu.org/avrdude/user-manu ... ude_6.html

Tady máš příklady příkazů, tak to piš přesně podle nich.
ale tam jsou ty začátky příkazů uplně jiné, než jsi mi sm napsal ty. Když jsem jenou upravil tu "příponu" která tam je navíz od 1. příkazu, stane se toto:

Microsoft Windows [Verze 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Všechna práva vyhrazena.

C:\Users\DAVID>Desktop\x64\avrdude -c avrisp -P com3 -b 19200 -p t45 -U flash:w:
roborizeh.hex

avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATtiny45
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.13s

avrdude: Device signature = 0x1e9206
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: please define PAGEL and BS2 signals in the configuration file for part
ATtiny45
avrdude: reading input file "roborizeh.hex"
avrdude: error opening roborizeh.hex: No such file or directory
avrdude: input file roborizeh.hex auto detected as invalid format
avrdude: can't open input file roborizeh.hex: No such file or directory
avrdude: read from file 'roborizeh.hex' failed

avrdude: safemode: Fuses OK

avrdude done. Thank you.


C:\Users\DAVID>


To znamená, že je to OK? nebo ne :D

Uživatelský avatar
daavid
Příspěvky: 146
Registrován: 13 kvě 2013, 02:00

#62 Příspěvek od daavid »

tam je stále chyba v tom hex souboru, ne? zkusím z něj udělat nový


dodatek: tak udělání nového souboru z tamtoho nic neudělalo, je to to samé :(

Uživatelský avatar
pavoucisit
Příspěvky: 176
Registrován: 02 lis 2008, 01:00
Bydliště: Havířov

#63 Příspěvek od pavoucisit »

nakopíruj roborizeh.hex do adresáře avrdude a zachovej avrdude -c avrisp -P com3 -b 19200 -p t45 -U flash:w:roborizeh.hex

Uživatelský avatar
daavid
Příspěvky: 146
Registrován: 13 kvě 2013, 02:00

#64 Příspěvek od daavid »

pavoucisit píše:nakopíruj roborizeh.hex do adresáře avrdude a zachovej avrdude -c avrisp -P com3 -b 19200 -p t45 -U flash:w:roborizeh.hex
a je to tu zase :D

Microsoft Windows [Verze 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Všechna práva vyhrazena.

C:\Users\DAVID>
C:\Users\DAVID>
C:\Users\DAVID>Desktop\x64\avrdude -c avrisp -P com3 -b 19200 -p t45 -U flash:w:
roborizeh.hex

avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATtiny45
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.13s

avrdude: Device signature = 0x1e9206
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: please define PAGEL and BS2 signals in the configuration file for part
ATtiny45
avrdude: reading input file "roborizeh.hex"
avrdude: error opening roborizeh.hex: No such file or directory
avrdude: input file roborizeh.hex auto detected as invalid format
avrdude: can't open input file roborizeh.hex: No such file or directory
avrdude: read from file 'roborizeh.hex' failed

avrdude: safemode: Fuses OK

avrdude done. Thank you.


C:\Users\DAVID>

Uživatelský avatar
pavoucisit
Příspěvky: 176
Registrován: 02 lis 2008, 01:00
Bydliště: Havířov

#65 Příspěvek od pavoucisit »

roborizeh.hex ještě nakopíruj přímo na C:

co když avrdude bere C: jako kořenový adresář
Naposledy upravil(a) pavoucisit dne 08 led 2014, 22:11, celkem upraveno 1 x.

Uživatelský avatar
daavid
Příspěvky: 146
Registrován: 13 kvě 2013, 02:00

#66 Příspěvek od daavid »

pavoucisit píše:roborizeh.hex ještě nakopíruj přímo na C:

avrdude bere C: jako kořenový adresář
opět toto

Microsoft Windows [Verze 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Všechna práva vyhrazena.

C:\Users\DAVID>Desktop\x64\avrdude -c avrisp -P com3 -b 19200 -p t45 -U flash:w:
roborizeh.hex

avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATtiny45
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.11s

avrdude: Device signature = 0x1e9206
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: please define PAGEL and BS2 signals in the configuration file for part
ATtiny45
avrdude: reading input file "roborizeh.hex"
avrdude: error opening roborizeh.hex: No such file or directory
avrdude: input file roborizeh.hex auto detected as invalid format
avrdude: can't open input file roborizeh.hex: No such file or directory
avrdude: read from file 'roborizeh.hex' failed

avrdude: safemode: Fuses OK

avrdude done. Thank you.


C:\Users\DAVID>


Já opravdu nevím, v čem je chyba

Uživatelský avatar
rnbw
Příspěvky: 32312
Registrován: 21 bře 2006, 01:00
Bydliště: Bratislava

#67 Příspěvek od rnbw »

Cele zle... Spustas to v "C:\Users\DAVID", tak tam musi byt aj ten hex subor!

Uživatelský avatar
AB1
Příspěvky: 312
Registrován: 23 lis 2009, 01:00

#68 Příspěvek od AB1 »

Soubor hex může být kdekoliv, ale zkus za něho napsat ještě :i

Kód: Vybrat vše

avrdude -c avrisp -P com3 -b 19200 -p t45 -U flash:w:"C:\Users\DAVID\Desktop\roborizeh\roborizeh.hex":i

Uživatelský avatar
daavid
Příspěvky: 146
Registrován: 13 kvě 2013, 02:00

#69 Příspěvek od daavid »

AB1 píše:Soubor hex může být kdekoliv, ale zkus za něho napsat ještě :i

Kód: Vybrat vše

avrdude -c avrisp -P com3 -b 19200 -p t45 -U flash:w:"C:\Users\DAVID\Desktop\roborizeh\roborizeh.hex":i
Jooo! :D Teď to s tim "i" už vyšlo (teda myslim) :D

Microsoft Windows [Verze 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Všechna práva vyhrazena.

C:\Users\DAVID>Desktop\x64\avrdude -c avrisp -P com3 -b 19200 -p t45 -U flash:w:
"C:\Users\DAVID\Desktop\roborizeh\roborizeh.hex":i

avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATtiny45
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.07s

avrdude: Device signature = 0x1e9206
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: please define PAGEL and BS2 signals in the configuration file for part
ATtiny45
avrdude: reading input file "C:\Users\DAVID\Desktop\roborizeh\roborizeh.hex"
avrdude: writing flash (890 bytes):

Writing | ################################################## | 100% 1.49s

avrdude: 890 bytes of flash written
avrdude: verifying flash memory against C:\Users\DAVID\Desktop\roborizeh\roboriz
eh.hex:
avrdude: load data flash data from input file C:\Users\DAVID\Desktop\roborizeh\r
oborizeh.hex:
avrdude: input file C:\Users\DAVID\Desktop\roborizeh\roborizeh.hex contains 890
bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 1.09s

avrdude: verifying ...
avrdude: 890 bytes of flash verified

avrdude: safemode: Fuses OK

avrdude done. Thank you.


C:\Users\DAVID>



Díky všem za rady!

Uživatelský avatar
lodtom24
Příspěvky: 18
Registrován: 15 dub 2014, 02:00

#70 Příspěvek od lodtom24 »

zdravim potrebuju poradit s nahranim bootloaderu pise mi to
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

Uživatelský avatar
daavid
Příspěvky: 146
Registrován: 13 kvě 2013, 02:00

#71 Příspěvek od daavid »

lodtom24 píše:zdravim potrebuju poradit s nahranim bootloaderu pise mi to
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
Přes co to programuješ a čím. Dej sem popřípadě printscreen ;)

Uživatelský avatar
lodtom24
Příspěvky: 18
Registrován: 15 dub 2014, 02:00

#72 Příspěvek od lodtom24 »

no pres arduino IDE kdyz sem mel klasickej velkej atmel ten sem nahral bezproblemu

Uživatelský avatar
lodtom24
Příspěvky: 18
Registrován: 15 dub 2014, 02:00

#73 Příspěvek od lodtom24 »

a programuju to normalne zas tim velkym atmelem kterej normalne pouzivam kamos ma nanov3.0 taky dosel jen k tomuhle hlaseni chyby

Uživatelský avatar
AB1
Příspěvky: 312
Registrován: 23 lis 2009, 01:00

#74 Příspěvek od AB1 »

klasickej velkej atmel
Tento typ jsem v katalogu nenašel.

Uživatelský avatar
lodtom24
Příspěvky: 18
Registrován: 15 dub 2014, 02:00

#75 Příspěvek od lodtom24 »

atmega328p-pu je normalne v arduinu uno ten pouzivam ten sem bez problemu nahral a ted mam tohle a pise to neco o prepsani -f chci to nahrat na tento

http://www.ebay.com/itm/151253230478?ss ... 1497.l2649

Odpovědět

Zpět na „Programování PIC, ATMEL, EEPROM a dalších obvodů“