PyMLL und TinyUniProg

Moderator: hlinke Verified

Antworten
GerdR Verified
Novize des Beleuchters
Beiträge: 228
Registriert: Mi 21. Mai 2025, 07:59
Hat sich bedankt: 94 mal
Wurde bedankt: 239 mal

PyMLL und TinyUniProg

#1

Beitrag von GerdR Verified »

@hlinke

Hi Harold,

hat schon mal jemand probiert mit der PyMLL unter Linux einen ATTiny oder einen Uno (für den TinyUniProg Programmer) zu flashen?

Ich habs - mit folgendem Ergebnis:
Bildschirmfoto vom 2025-09-21 11-27-06.png

So wie ich das seh kann das auch nicht klappen, weils APPDATA nicht gibt !?

GerdR

hlinke Verified
MLL-TEAM
MLL-TEAM
Beiträge: 170
Registriert: Do 10. Apr 2025, 19:30
Wohnort: Trier
Hat sich bedankt: 140 mal
Wurde bedankt: 163 mal
Kontaktdaten:

Re: PyMLL und TinyUniProg

#2

Beitrag von hlinke Verified »

Hi Gerd,

danke für den Hinweis.
Schaue ich mir an.

Viele Grüße
Harold

GerdR Verified
Novize des Beleuchters
Beiträge: 228
Registriert: Mi 21. Mai 2025, 07:59
Hat sich bedankt: 94 mal
Wurde bedankt: 239 mal

Re: PyMLL und TinyUniProg

#3

Beitrag von GerdR Verified »

@hlinke ,

Hi Harold, bist du schon irgendwie weiter mit den Pfadzuweisungen?

GerdR

hlinke Verified
MLL-TEAM
MLL-TEAM
Beiträge: 170
Registriert: Do 10. Apr 2025, 19:30
Wohnort: Trier
Hat sich bedankt: 140 mal
Wurde bedankt: 163 mal
Kontaktdaten:

Re: PyMLL und TinyUniProg

#4

Beitrag von hlinke Verified »

@GerdR

Hallo Gerd,
leider ist es mit einer Pfadänderung nicht getan.
Da unter Linux die Windows batchdateien nicht funktionieren, muß der gesamte Ablauf an Linux überarbeitet werden.

Dazu kommt, das AVRDUDE nicht automatisch mit ARDUINO installiert wird, sondern von Hand installiert werden muß.
Das ist noch einfach.

Leider scheitert der Test des weiteren Ablaufs bei mir daran, dass ich die AttinyCore.avr 1.5.2 nicht installiert bekomme.
Die Installation bricht immer mit DNS-Fehlern ab.

Wie hast Du diese Bibliothek installiert bekommen?

Viele Grüße
Harold

GerdR Verified
Novize des Beleuchters
Beiträge: 228
Registriert: Mi 21. Mai 2025, 07:59
Hat sich bedankt: 94 mal
Wurde bedankt: 239 mal

Re: PyMLL und TinyUniProg

#5

Beitrag von GerdR Verified »

@hlinke

Hi Harold,

Ich hab die Library ganz normal von Spencer Kondes Seite herunterladen können.

https://descartes.net/package_drazzy.com_index.json

Mit dem Link auf Hardis git hub Seite hab ich nur Probleme.

GerdR

hlinke Verified
MLL-TEAM
MLL-TEAM
Beiträge: 170
Registriert: Do 10. Apr 2025, 19:30
Wohnort: Trier
Hat sich bedankt: 140 mal
Wurde bedankt: 163 mal
Kontaktdaten:

Re: PyMLL und TinyUniProg

#6

Beitrag von hlinke Verified »

@GerdR
Danke.
Installation von Hand hat jetzt funktioniert.

Ich komme heute leider nicht mehr dazu weiter zu testen. (Mein Linux-Mint Laptop ist sehr sehr langsam und jeder Schritt dauert ewig ...)

Morgen kann ich hoffentlich eine neue Version zur Verfügung stellen, mit der der Upload für den DirektMode Servo funktioniert.
Bei den anderen muß ich noch schauen. Das ist noch komplizierter ...

Viele Grüße
Harold

hlinke Verified
MLL-TEAM
MLL-TEAM
Beiträge: 170
Registriert: Do 10. Apr 2025, 19:30
Wohnort: Trier
Hat sich bedankt: 140 mal
Wurde bedankt: 163 mal
Kontaktdaten:

Re: PyMLL und TinyUniProg

#7

Beitrag von hlinke Verified »

@GerdR
Leider gibt es ein Problem mit dem avrdude unter Linux.

Dasselbe Kommando (ausser dem angepassten Verzeichnissen) funktioniert unter Windows einwandfrei. Unter Linux wird der Programmer erkannt, aber es kommen dann Protokollfehler.
Da ich mich weder mit avrdude noch mit dem Programmercode auskenne, bin ich im Moment erstmal ratlos und komme nicht weiter.

Wenn jemand sich mit avrdue unter Linux auskennt, wäre ich für jede Hilfe dankbar.

Im Moment komme ich so nicht weiter.

Viele Grüße
Harold

Falls jemand etwas damit anfangen kann:

Das ist das Kommando unter Windows:

Code: Alles auswählen

"C:\Users\Harold\AppData\Local\Arduino15\packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude.exe" -C"C:\Users\Harold\AppData\Local\Arduino15\packages/ATTinyCore/hardware/avr/1.5.2/avrdude.conf" -v -pattiny85 -c avrisp -PCOM5 -b19200  -U flash:w:DM-TinyServo.hex:i
Und das ist das Kommando unter Linux:

Code: Alles auswählen

"/home/harold/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" -C"/home/harold/.arduino15/packages/ATTinyCore/hardware/avr/1.5.2/avrdude.conf" -v -pattiny85 -c avrisp -P/dev/ttyUSB0 -b19200  -U flash:w:DM-TinyServo.hex:i
Das ist das Ergebnis unter Linux:

Code: Alles auswählen


avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/harold/.arduino15/packages/ATTinyCore/hardware/avr/1.5.2/avrdude.conf"
         User configuration file is "/home/harold/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : avrisp
         Overriding Baud Rate          : 19200
         Setting bit clk period        : 5.0
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x15
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x15
         AVR Part                      : ATtiny85
         Chip Erase delay              : 400000 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    12     4    0 no        512    4      0  4000  4500 0xff 0xff
           flash         65    12    32    0 yes      8192   64    128 30000 30000 0xff 0xff
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          2    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel AVR ISP

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x02

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x10
         Hardware Version: 135063968
         Firmware Version: 0.134885619
         Topcard         : STK502
         Vtarget         : 1.8 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: stk500_initialize(): (b) protocol error, expect=0x10, resp=0x01
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x10

avrdude done.  Thank you.

Antworten
  • Vergleichbare Themen
    Antworten
    Zugriffe
    Letzter Beitrag

Zurück zu „Allgemeine Fragen“