Forum: Mikrocontroller und Digitale Elektronik avrdude.conf: Attiny44 mit AVR910 programmieren


von _rooky_ (Gast)


Lesenswert?

Hallo,
ich würde gerne meinen Attiny44 mit dem AVR910 programmieren. Ich habe 
schon ein paar versuche mit der avrdude.conf gemacht:
1. avr910_devcode   = 0x20; im Abschnitt der part id "t44" verwendet
2. Den Attiny45 Abschnitt mit dem devicecode des Attiny44 gepatcht

Beides hat leider nicht funktioniert. Die Fuses werden gelesen, der 
Flash gelöscht, aber beim Verifizieren wird dann 0xFF gelesen.

Ich verwende ein HC06 Bluetooth Modul und einen ATtiny2313 mit der
AVR910 Firmware von Klaus Leidinger (avr910_2313_v38b.hex) als
kabellosen ISP-Programmer. Funktioniert auch prima mit den vom
AVR910 unterstützten AVRs, nur nicht mit dem Attiny44.

Kann jemand mit passenden avrdude.conf Patches helfen?

von Klaus L. (Gast)


Lesenswert?

Hallo,

benutzt den doch noch jemand ;-)

Zeig doch mal das ganze avrdude Kommando. Eigentlich müsste das ohne 
manipulation der avrdude.conf gehen, in avrdude kann man ja den 
gewünschten devicecode übergeben. (-x devcode= )

Eigentlich müsste das hier funktionieren:

avrdude -c avr910 -P COMPORT -b BAUDRATE -p t44 -x devcode=0x76

Sag mal ob es klappt.

Wie ist denn die Geschwindigkeit mit dem Bluetooth?

von Klaus L. (Gast)


Lesenswert?

Ach gerade sehe ich das der t44 ja in der Software als "unofficial" drin
ist ;-)

_rooky_ schrieb:
> 1. avr910_devcode   = 0x20; im Abschnitt der part id "t44" verwendet

die 0x20 ist nicht der Devicecode sondern die Blockgröße.

Der Devicecode ist 0x0f, also wenn Du den in die avrdude.conf einträgst, 
oder eben

avrdude -c avr910 -P COMPORT -b BAUDRATE -p t44 -x devcode=0x0f

verwendest sollte es auch gehen.

von _rooky_ (Gast)


Lesenswert?

Danke für die Antwort. Das probiere ich mal aus.
Mit dem Atmega328P und Attiny2313 nutze ich das (immer noch gerne) 
zusammen mit dem Bluetooth Modul. Ohne Kabel ist irgendwie freier;) und 
3.3V ist auch einfacher.

von _rooky_ (Gast)


Lesenswert?

Hallo,
mit dem devcode 0x0f funktioniert es:
avrdude -v -c avr910 -P com23 -p t44 -x devcode=0x0f -U 
flash:w:nRF24L01_TXty.ino.tiny14.hex

Perfekt. Vielen Dank.

Wo findet man die richtigen devcodes?

Baud-Rate über BT ist 115.2k, mehr habe ich noch nicht ausprobiert. Für 
einen Attiny44 reicht die Geschwindgkeit allemal. Gefühlt ist der Aufbau 
schneller als das STK500. Kleiner Nachteil ist, dass man nach dem Start 
des avrdude ca. 1 Sekunde warten muss, bis sich der PC mit dem HC06 
verbunden hat. Danach geht es aber ganz fix.

LG

von Klaus L. (Gast)


Lesenswert?

_rooky_ schrieb:
> Hallo,
> mit dem devcode 0x0f funktioniert es:
> avrdude -v -c avr910 -P com23 -p t44 -x devcode=0x0f -U
> flash:w:nRF24L01_TXty.ino.tiny14.hex
>
> Perfekt. Vielen Dank.

Schön das es klappt, weiter viel freude beim programmieren.

>
> Wo findet man die richtigen devcodes?
>

Die stehen im Sourcecode, ziemlich hinten, aber nicht den devicecode mit 
der Pagesize verwechseln...

; unofficial Device Codes. Match avrdude.conf with tis "avr910-devcode"

; avr910-devcode ,Pagesite in Words
  .db 0x01  ,0x40  ;m640   avr910-Devicecode not official!
;  .db 0x02  ,0x40  ;m644   avr910-Devicecode not official!
;  .db 0x03  ,0x40  ;m645   avr910-Devicecode not official!
  .db 0x04  ,0x40  ;m649   avr910-Devicecode not official!
  .db 0x05  ,0x40  ;m6490   avr910-Devicecode not official!
  .db 0x06  ,0x40  ;90PWM2  avr910-Devicecode not official!
  .db 0x07  ,0x40  ;90PWM3  avr910-Devicecode not official!
  .db 0x08  ,0x40  ;m1280   avr910-Devicecode not official!
  .db 0x09  ,0x40  ;m1281  avr910-Devicecode not official!
;  .db 0x0a  ,0x40  ;m2560   avr910-Devicecode not official!
;  .db 0x0b  ,0x40  ;m2561  avr910-Devicecode not official!
;  .db 0x0c  ,0x40  ;m3250   avr910-Devicecode not official!
;  .db 0x0d  ,0x40  ;m6450  avr910-Devicecode not official!
  .db 0x0e  ,0x10  ;tn24   avr910-Devicecode not official!
  .db 0x1a  ,0x10  ;tn25   avr910-Devicecode not official!
  .db 0x0f  ,0x20  ;tn44  avr910-Devicecode not official!
  .db 0x1b  ,0x20  ;tn45  avr910-Devicecode not official!
  .db 0x14  ,0x20  ;tn84  avr910-Devicecode not official!
  .db 0x1c  ,0x20  ;tn85  avr910-Devicecode not official!
  .db 0x1d  ,0x40  ;CAN128  avr910-Devicecode not official!
  .db 0x23  ,0x10  ;tn2313 avr910-Devicecode not official!
  .db 0x31  ,0x20  ;m48  avr910-Devicecode not official!
  .db 0x33  ,0x20  ;m88   avr910-Devicecode not official!
  .db 0x35  ,0x40  ;m168   avr910-Devicecode not official!
;  .db 0x36  ,0x40  ;m165   avr910-Devicecode not official!
  .db 0x37  ,0x40  ;m164   avr910-Devicecode not official!
  .db 0x39  ,0x40  ;m324   avr910-Devicecode not official!
;  .db 0x3c  ,0x40  ;m325   avr910-Devicecode not official!
  .db 0x3d  ,0x40  ;m329   avr910-Devicecode not official!
  .db 0x3e  ,0x40  ;m3290   avr910-Devicecode not official!
  .db 0x57  ,0x10  ;tn13   avr910-Devicecode not official!

;Appearance of this Devicecodes does not mean this Devices are or will 
be fully supported !

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.