Diskussions- und Newsboard des DARC-Ortsverbandes I40
allgemeine Kategorie => mcHF Projekt Deutsch / English (here you can discuss everything related to mcHF) => Message started by: DF8OE on 18. August 2016, 12:35:44

Title: USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 18. August 2016, 12:35:44

Mir ist es endlich gelungen, die GROßE USB-Buchse zu aktivieren. Der Fehler lag in den STM Libraries - ein Tipp eines indischen OMs (der von Programmieren NULL Ahnung hat) war das Sahnehäubchen.

Ich habe den neuen Bootloader als Daily Snapshot veröffentlicht. Er ist funktionsidentisch mit dem alten Bootloader - bis auf die Tatsache, dass man den Stick nun an die GROßE Buchse hängen muss. Somit wird nun weder ein Adapter benötigt noch eine Modifikation.

Außerdem eröffnet diese Erkenntnis nun mannigfaltige Möglichkeiten zu weiterem USB-Einsatz, da wir nun wissen, wie man die große Buchse mit eingebautem PHY im FS Mode und als Host betreibt:

- Tastaturen
- Mäuse
- GPS-Sticks (Zeitnormale etc.)
- USB-Sticks und Festplatten (!!)
- ...usw usw

vy 73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL3NCW on 18. August 2016, 13:48:50

Das ist ja Klasse Andreas !!!!!
Ich denke das eröffnet Euch nun tolle Möglichkeiten, das wäre doch was fürs Memorymanagement, man
muß dann nicht in den Flash speichern und könnte die
Memories komfortabel am PC bearbeiten etc

Muss ich heute Abend gleich mal testen. Muss mal suchen wie ich den Bootloader aufspiele, hab ich schon vergessen.

73! es mni tnx

Joachim

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: BO_Andy on 18. August 2016, 13:55:36

Hallo Andreas super hingekommen habe ihm gleich drauf gemacht und getestet geht. Aber mal eine andere Frage wo lag genau der Fehler hatte ja auch probiert denn bootloder umzubenennen leider habe ich das nicht kompilern bekommen da ich dem kompilier nicht zu laufen bekam.

LG 73 BO_ANDY

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: BO_Andy on 18. August 2016, 13:57:40

Quote from: DL3NCW on 18. August 2016, 13:48:50
Das ist ja Klasse Andreas !!!!!
Ich denke das eröffnet Euch nun tolle Möglichkeiten.

Muss ich heute Abend gleich mal testen. Muss mal suchen wie ich den Bootloader aufspiele, hab ich schon vergessen.

73! es mni tnx

Joachim



Zum bootloder aufspielen Band plus und power taste gleichzeitig drücken und gedrückt halten und vorher JUPER P6 stecken

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL3NCW on 18. August 2016, 14:12:42

OK, das geht aber nur mit dem Defuse
Programm oder ?

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 18. August 2016, 14:21:42

@Joachim

Ich mache es auf der Kommandozeile (Linux) mit dem St-LinkV2:

st-flash write bootloader.bin 0x8000000 (ist auch in der letzten Zeile des Makefiles so drin - nur auskommentiert). Setzt natürlich voraus, dass Du Linux betreibst und st-flash eingerichtet hast ::)

@Andy
Es war ein Bug in den STM-Libs:
weitere Infos hier (https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https%3a%2f%2fmy%2est%2ecom%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fKnown%20bugs%20in%20the%20OTG%20%20USB%20library%20v2%2e1%2e0&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=2440)

Speziell diese Zeile hier:

RCC_AHB1PeriphClockLPModeCmd( RCC_AHB1Periph_OTG_HS_ULPI, DISABLE);

war des Rätsels Lösung.

73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DM5AF on 18. August 2016, 14:30:38

Klasse das es mit der Großen USB Buchse nun geht.
Um den Bootloader upzudaten verbinde ich den Rechner weiterhin mit der kleinen USB Buchse wie in der Anleitung beschrieben oder nun auch mit der Großen?

Ich hoffe das ist keine all zu blöde Frage:-)

73 Andreas DM5AF

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 18. August 2016, 14:47:59

Wenn Du es im Dfuse-Modus machen willst (mit den Dfuse-Tools) und nicht mit dem ST-LinkV2, dann muss es nach wie vor die kleine Buchse sein. Beim ST-LinkV2 sind es die vier Debugpins, die Chris bei der 0.5er PCB Version freundlicherweise entfernt hat ???

Nochmal zur Erinnerung:

  • Jumper P6 stecken
  • die entsprechende Software starten (bei Windows Dfusetools) und mit "choose" die Datei bootloader.dfu laden
  • PC und mcHF via USB verbinden (beim mcHF die kleine Buchse)
  • BANDP drücken und gedrückt halten, gleichzeitig (mit der gleichen Hand, sonst hat man gleich zu wenig Hände) die Power-Taste drücken und gedrückt halten
  • wenn der PC den STM-Chip erkannt hat, kann man die BANDP-Taste loslassen aber muss die Power-Taste weiterhin festhalten!
  • im Programm auf "Update" klicken - Warnmeldung bestätigen (ja,wir wissen was wir tun...)
  • wenn das Programm success meldet, kann man den Power-Taster loslassen.
  • Kabel vom mcHF trennen, Strom abnehmen, Jumper entfernen...
  • ...und der neue Bootloader ist drauf. Firmware wird dabei NICHT beschädigt - Einstellungen und/oder deren Backups auch nicht.


  • 73
    Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DM5AF on 18. August 2016, 17:58:42

Danke Andreas für die schnelle und klare Antwort.

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: Michael_K on 19. August 2016, 03:55:00

Guten Morgen,
erst mal Gratulation und Anerkennung für die FW-Erweiterungen der letzten Tage.
habe nun doch ein Problem mit dem neuen Bootloader.
ui-Board v0.4-"solo", externe Speisung 5V (pins 28 und 30 am Header30), PC WIN10.
Bootloader von https://github.com/df8oe/mchf-github/releases 1.1.4 - Downloads - bootloader.dfu
P6 gesteckt
STM wird von DfuSe erkannt, flashen des Bootloaders als richtig/vollständig angezeigt
P6 abgezogen
USB-Stick an große Buchse, mit Start Update blinkt die Display-Beleuchtung.
Update FW wie bisher über kleine Buchse --> o.k.
Bei Neustart wird im Display die FW 18.08. 22:.. Uhr angezeigt, BL 1.0.0 also noch der alte.
Eigentlich meine Frage: wo ist der "neue" BL abgelegt?
evtl. mal einen direkten Link dorthin
vy 73 aus Erfurt
Michael_K

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DJ3FV on 19. August 2016, 04:58:39

Hallo Michael,

guckst du hier. (https://www.amateurfunk-sulingen.de/data/uploads/bootloader.dfu)


Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 19. August 2016, 05:55:29

Oder, um es nicht so kryptisch zu machen ("wo kommt der Link denn her?"):

Von unserer "Modifikationen-Seite" ganz unten. Da, wo auch der Link zu den Daily Snapshots der Firmware liegt, ist auch ein Link zu Dailys des Bootloaders.

Nur ist der eben schon fast fertig gewesen - kein Bedarf an Änderungen - bis auf....

Und genau deswegen gibt es ja jetzt auch zum ersten Mal eine Daily davon. Bei der nächsten Testing ist der Bootloader dann auch offiziell verfügbar.

73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL8EBD on 19. August 2016, 06:28:28

Jungs ihr seid spitze!!!!!!!!

Ist damit auch das leidige Thema welcher USB Stick geht und welcher nicht auch vom Tisch?

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 19. August 2016, 06:36:16

Vermutlich nicht. Das liegt an zu altem Code von STM, der zu einer Zeit geschrieben wurde, als USB 2.0 noch eine Neuerung war und ein USB-Stick mit mehr als 2GB fast unerschwinglich war.

Ich habe auch nicht vor, das als "Baustelle" zu sehen. Es gibt genügend Sticks, die einwandfrei laufen.

Und man kann es jetzt ganz einfach testen, ohne dass es eine Unsicherheit gibt "liegt es jetzt an der Hardware oder ist der Stick ungeeignet?" Einfach den BANDM-Button am Anfang nur kurz gedrückt halten. Dann wird nur gesichert - nicht geflasht. Geht das Sichern, ist der Stick geeignet.

Allerdings werde ich für die FW demnächst daran arbeiten, Settings, Memory-Tables etc. per USB-Stick importieren und exportieren zu können und dafür werde ich einen neuen Code schreiben. Der wird anders arbeiten. Es ist aber möglich, dass damit der Bootloader-Code, wenn man ihn auch dafür verwenden würde, die 32KB-Größe sprengt (das ist die maximale Größe des Bootloaders).

Mal schauen.

73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: Michael_K on 19. August 2016, 06:43:49

Danke an Andreas und Uwe für die Hinweise.
Jetzt hats geklappt.
Im Startbildschirm FW: 1.1.5 und BL: 2.0.0
vy 73 aus Erfurt
Michael_K

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DJ3FV on 19. August 2016, 09:06:08

Feedback von mir: Bootloader funktioniert einwandfrei. Ihr leistet im Moment Großes und hebt den mcHF auf ein neues Niveau !

Vielen Dank für eure Arbeit.

Uwe

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF9EH on 19. August 2016, 09:23:30

Moin, moin ...

Klasse, einfach Super.
:)

73 de Klaus

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF7IY on 19. August 2016, 09:39:18

Hallo,
funktioniert perfekt. Vielen Dank und weiterhin gutes Gelingen. :)

73 de Uli

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL8EBD on 19. August 2016, 18:19:23

auch von mir positive Rückmeldung: USB Stick update via großer USB Buchse funktioniert ufb

Die neuen Features probiere ich jetzt nach und nach aus.

Daaanke!!!! ;) ;) ;) ;)

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DG7YHB on 20. August 2016, 09:36:46

Guten Morgen zusammen, ich habe mich nun auch mal an das update des Bootloader gewagt.
Habe alles nach Anleitung von Andreas gemacht, DfuSe zeigt auch "Target 00: Upload succesful !"
an, aber im Display wird immer noch "FW: 1.1.5 / BL: 1.0.0" angezeigt.
Bei Firmware Update über die große USB blinkt das Display.

Hat jemand eine Idee, was ich da falsch mache?

Viele Grüße und ein schönes WE
Udo

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: Michael_K on 20. August 2016, 10:00:17

Hallo Udo,
schau mal Antwort #11 (Seite 1) von Andreas.
War bei mir der gleiche Fehler - falschen Bootloader
vy 73 aus Erfurt
Michael_K

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DG7YHB on 20. August 2016, 10:08:31

Hallo Michael, das hatte ich auch gedacht, daher habe ich erst den Link von Uwe probiert
und drauf gespielt (1.0.0 im Display) und danach dann noch mal den von der Modifikationen Seite
(auch 1.0.0 im Display).
Der Upload läuft aber bis zum Ende durch...

Noch mal ne Frage zum DfuSe, da gibt es zwei "choose", welche muss ich nehmen?
Habe mal beide probiert, aber Ergebnis bleibt 1.0.0

Viele Grüße
Udo

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 20. August 2016, 10:31:16

Du hast den falschen Link.

Scrolle auf der Modifikationen-Seite ganz nach unten und nimm den Bootloader dort. Oder geh ins Github und nimm den aus dem heute veröffentlichten stable Release 1.2.0 (da ist der gleiche Bootloader drin).

Er ist 23.413 Bytes groß.

vy 73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DG7YHB on 20. August 2016, 10:38:56

Hallo Andreas, hm, genau die habe ich genommen.
Muss ich denn "Upload Action" oder "Upgrade or Verify Action" auswählen?

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL1EGQ on 20. August 2016, 10:43:57

Hallo...

Diese USB Stick sollte gut sein: http://www.ebay.de/itm/131908986773?ssPageName=STRK:MESELX:IT&_trksid=p3984.m1555.l2649

Gruß an alle.

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 20. August 2016, 10:54:09

@Udo

habe gerade keinen Windoof-Rechner zur Hand und kann daher nicht nachschauen...

73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DG7YHB on 20. August 2016, 10:56:22

Darf ich einen Screenshot der Programmoberfläche Hochladen?
Ich habe ein bisschen Angst, das ich mein Lieblingsfunkgerät
schrotte.

vy73
Udo

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL3NCW on 20. August 2016, 10:58:33

Es ist das choose im Kasten rechts unten, nicht das linke

73 Joachim

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DG7YHB on 20. August 2016, 11:00:28

Super, danke, dann werde ich es jetzt noch mal probieren...

vy73
Udo

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DG7YHB on 20. August 2016, 11:05:00

Top, DANKE!!!
Jetzt hat es geklappt...

Viellen Dank Euch allen und noch ein schönes WE

vy73 Udo

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL8EBD on 20. August 2016, 11:24:12

ich hatte auch erst Schwierigkeiten mit dem Bootloader.
Der wurde geflasht, war aber immer 1.0.0 ....
erst der aus Uwe's Link brachte den Erfolg.


Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DG7YHB on 20. August 2016, 13:11:01

Bei mir kam hinzu, das ich das falsche "Choose" genommen hatte 8)

Aber jetzt ist er wieder zusammengebaut und läuft. Habe aber die Gunst
der Stunde genutzt, und an den P6 einen Schalter gelötet. Das macht
die Sache für die zukünftigen Updates leichter.

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL3NCW on 20. August 2016, 14:56:30

Hallo Andreas,

gibt es Unterschiede zwischen dem Bootloader vom 20.8 und dem vom 18.8 ?

73 Joachim

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 20. August 2016, 15:10:22

Keine funktionellen. Der neueste hat ein paar Zeilen Debugcode weniger. Die brauchte ich, um den Fehler zu finden. Aber sie stören auch nicht, wenn sie drin sind.

73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL3NCW on 20. August 2016, 15:18:31

Danke Andreas für die Info.
Ich habe den P6 nach aussen geführt,
so bin ich auf kommende Updates des
Bootloaders gut vorbereitet.

73 Joachim

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DG3NEO on 21. August 2016, 09:20:53

Hallo Andreas,

meinen Glückwunsch zu diesem (weiteren) Meilenstein der Entwicklung!
Das vereinfacht das (künftige) Arbeiten mit dem mcHF erheblich, der Ausblick auf neue Optionen macht Laune.

Der Beitrag auf der Webseite "erste Inbetriebnahme und Tipps zur Fehlersuche" (https://www.amateurfunk-sulingen.de/inbetriebnahme-tipps#start) braucht wahrscheinlich noch eine Aktualisierung.

vy 73 Thomas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: Michael_K on 22. August 2016, 14:49:48

So,
nun läuft auch mein V0.5-er Board mit der großen Buchse.
Habe noch die Option 5 V aus ( v nachgerüstet und dort auch die kleine Buchse mit angeklemmt.
Bei der Gelegenheit auch die Schirmung zwischen ui und rf als 0,5-er Cu-Blech ausgeführt und die P6 auf Buchse endendes Kabel-Schwänzchen ausgeführt.
vy 73 aus Erfurt
Michael_K

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: peter_77 on 24. August 2016, 07:22:07

Ist die generelle Frage ob man mit dem neuen Bootloader überhaupt noch die 5V an der kleinen Buchse benötigt ?
Eigentlich kann man sie ja jetzt besser wieder weglassen um 5V Konflikte mit einem Rechner zu vermeiden.

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL8EBD on 24. August 2016, 09:03:22

ich hatte eine der Pin Dioden, die vom Umbau auf Relaisumschaltung über blieb, dort in die 5V Leitung zur kleinen USB Buchse eingefügt....
....damit gab es keine Probleme...... aber dank des genialen Bootloaders ist das ja alles überflüssig und flog wieder raus ;)

Für ein erneutes flashen des Bootloaders benötigt man dort keine 5V

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: peter_77 on 24. August 2016, 11:56:16

Genau das war auch meine Denke, denn so hat man einen USB Port als Client der dann konfliktfrei an den Rechner gesteckt werden kann.
Die große USB Buchse hat ja per se 5V.
So deckt man also alle erdenkbaren USB Situationen ideal ab.
In so fern ist der neue Bootloader (Thanks to Andreas !) ein großer und positiver Schritt nach vorn

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 24. August 2016, 15:10:02

Da habe ich fast ein Jahr für gebraucht, um diesen Bug in den ST-Libs zu finden.

Gewollt habe ich die große Buchse von Anfang an. Aber sie war nicht zur Mitarbeit zu bewegen ::)

vy 73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL8EBD on 24. August 2016, 18:40:45

Das hat sich aber 100% gelohnt Andreas!
Hab jetzt endlich mal den 427er aufgelötet und selbstverständlich den neuen Bootloader geflasht.
Geht UFB!

Andreas.....jetzt hast Du ja wieder Ressourcen frei und kannst an den Banderweiterungen weiterentwicklen ;D ;D ;D


Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 24. August 2016, 19:08:48

Unter anderem... Aber vor den Banderweiterungen kommt was anderes. Es ist im Betastadium (selbstgeätzte Platine) jetzt erprobt und wird in Kürze in Fertigung gehen. Ihr werdet es hier im Forum angekündigt finden: in ca. 1 Woche denke ich 8)

vy 73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL8EBD on 25. August 2016, 05:42:38

ich weiß es!

Ein abgesetztes Bedienpanel mit 7" TFT und kapazitivem Touch und USB Anschluss

;D ;D ;D

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DJ3FV on 25. August 2016, 05:54:20

... the mcHF Whisperer 8) ;D

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 25. August 2016, 07:24:10

*grin*

Ich sehe - ihr kennt mich schon ein wenig ;D

Irgendwas davon ist schon in der richtigen Richtung.

Auf jeden Fall wird es kompatibel zum "normalen" mcHF sein, es wird keine "Lötorgien" geben müssen, und die Abmessungen des Gerätes verändern sich auch nicht wesentlich (bedeutet, dass Gehäuse, die nicht allzu bündig sind, weiterverwendet werden können).

Aber jetzt Schluss mit dem "orakeln" - Infos kommen in Kürze.

vy73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL3ED on 28. August 2016, 15:17:44

Guten Tag Andreas,
Dein neuer Bootloader ist ja OK, Du könntest jetzt noch einen drauf setzen und zwar wenn er beide Verfahren könnte. Also USB-Stick und USB-Kabel. Fände ich super. Vielleicht als Anregung.

Gruß Ulrich

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DJ3FV on 28. August 2016, 15:52:02

Hallo Ulrich,

sollte auch so funktionieren, da der USB erkannt oder eben nicht erkannt wird.
@Andreas oder liege ich da falsch?

vy 73
Uwe

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 28. August 2016, 17:25:07

Den kann ich leider nicht draufsetzen. Der Bootloader-Code von Chris ist genauso "Closed Source" wie der Code vom mcHF-manager. Niemand kann da was machen. Man würde gegen die Lizenz verstoßen: Reverse-Engineering ist verboten...

Und genau deswegen, weil ich Closed-Source in einem ansonsten völlig offengelegten Projekt hasse, habe ich sofort alles rund um den mcHF-manager "eliminiert" ::)

vy 73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DJ3FV on 28. August 2016, 18:27:32

Ups closed source, das ist neu für mich :(

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 29. August 2016, 04:54:04

Ich hatte gleich zu Beginn meines Aufbaus Chris gefragt, ob ich entweder den Quellcode vom Bootloader, oder den vom mcHF, oder eine Beschreibung des Protokolls haben kann, mit dem der Bootloader arbeitet. Schliesslich betreibe ich kein "Windows" und kann mit dem mcHF-manager nichts anfangen. Chris hat aber mit dem Verweis, dass er hier lizenzrechtlich geschützte Teile seines Unternehmens verwendet hat, alles abgelehnt. Damit stand für mich die Entscheidung für einen "eigenen Bootloader" von Anfang an fest.

Man stelle sich nur vor, Chris hat irgendwann keine Lust mehr, den Bootloader / den mcHF-manager zu pflegen und mit der nächsten Windows-Version läuft der nicht mehr! Soll der mcHF dann in die Tonne? Muss sich ALLES dem Wegwerfdiktat M$s unterordnen??

vy 73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: peter_77 on 29. August 2016, 08:02:47

Und wenn man mal klar die Fakten betrachtet ist die Lösung mit dem Stick auch erheblich einfacher, sinnvoller und vor allen Dingen universeller, da wie Andreas es schon richtig sagt, der OS Zwang hinfällig wird.
Gerade vor dem Hintergrund des neuen Bootloaders und das es damit nun wunderbar mit der großen USB Buchse klappt und generell die USB Infrastruktur des mcHF damit vollständig nutzbar ist im Hostmode und im Devicemode.
Warum man da noch mit dem mcHF Manager rumfrickeln muss erschliesst sich einem dann so oder so nicht mehr.
Kann man nur hoffen das sich Andreas' pragmatische Lösung nun hoffentlich weiter durchsetzt in der mcHF Community.

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DJ3FV on 29. August 2016, 08:18:42

Quote from: DF8OE on 29. August 2016, 04:54:04
...

Man stelle sich nur vor, Chris hat irgendwann keine Lust mehr, den Bootloader / den mcHF-manager zu pflegen und mit der nächsten Windows-Version läuft der nicht mehr! Soll der mcHF dann in die Tonne? Muss sich ALLES dem Wegwerfdiktat M$s unterordnen??

vy 73
Andreas


Ich stimme ich dir voll zu. Es war auch nur ein Ausdruck der Überraschung. Mein Haus ist M$$ frei und selbst mein Handy läuft mit Ubuntu...

vy 73
Uwe

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DL3AAA on 02. September 2016, 18:10:38

Hallo Andreas,

habe heute den Bootloader neu geladen und erstmalig die neue FW vom 02.09.2016 via großem USB Anschluss aufgespielt. Glückwunsch und danke für Aktivierung. Ich bin gespannt was sich da für neue Möglichkeiten ergeben werden. 73 Dietrich

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: hb9trt on 09. September 2016, 06:03:28

Hallo Andreas,

Hatte die Modifikation nicht gemacht, um den kleinen USB Anschluss für Upgrades zu benutzen. Bis jetzt immer über das Tool geladen (was ansich auch gut ging). Gestern den neuen Bootloader geladen und danach einen Firmware Upgrade mit dem grossen USB Port gemacht. Funktioniert tadellos. Subere Arbeit! Besten Dank.

Gruss
Reto

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 09. September 2016, 13:45:31

Hello,
Before loading the new bootloader, I decided to exchange my processor STM32F407VGT6 for a STM32F427VIT6 to be ready for future Firmware updates that possibly require more memory space.
After that, I uploaded the new bootloader version 1.2.0 successfully.

DFUdemo reported :
----------------------

STM Device in DFU Mode.
Vendor ID 0483
Product ID DF11
Version 2200

00 Internal Flash 24 Sectors
01 Option Bytes 2 Sectors
02 DTP Memory 2 Sectors
03 Device Feature 1 Sector

Update successful.
--------------------

However when I remove Jumper JP6 and try to upload the Firmware as usual but now via the big USB connector, the backlight of the LCD lits but the green- and the red LEDs remain unlit; Firmware loading does not take place.
What have I done wrong, or does the new processor (2MB of flash) need something extra ??

Thanks in advance for your help.
73 de Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 09. September 2016, 13:53:38

Hello Jos,

no additional work neccessary - works out-of-the-box.

There must be something wrong with the bootloader programming and/ or the power supply of the big USB plug. This can be in version 0.5 because there is an additional regulator for 5V USB.

Do you have sed bootloader.dfu (NOT .bin)?

vy 73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 09. September 2016, 14:15:17

Thanks Andreas for the reply.
Yes I used bootloader.dfu.
Never used the big USB port before ofcourse, so will do some more checking on it.
Will also download the bootloader again and try once more, who knows.
Before these changes all worked fine !
Will report if news.
73
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 09. September 2016, 14:17:55

I think you will fix it. It is uncritical and there are no known issues...

vy 73
Andreas

EDIT:
Do you use an USB stick which already worked using the small USB plug?May be your USB stick is incompatible... But if it worked using small plug it IS COMPATIBLE of course.

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 09. September 2016, 15:27:33

Yes, it is the same one that worked well on the small port.

73
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: peter_77 on 09. September 2016, 17:35:00

Just to give a feedback from Ver 0.5. Here it worked without any issues and without any additional todos.
The only thing i have done to prevent electrical problems was to remove the 5V wire from the small USB connector first before uploading the new bootloader from the PC.
Uploding works errorfree and instantly after this i updated from the big USB to the most recent firmware image.
I tried this with 2 different USB sticks. One older 512 MB noname stick (giveaway gift) and a 2G Transcend stick. Both work fine with Ver. 0.5

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 10. September 2016, 18:47:24

Hi Andreas,

Still I can't load the firmware.
I checked the big USB port, power is OK (5V), all connections checked OK.
Also checked the processor clock, running OK.
It looiks like here is no reaction on pressing the Band- button, so I did check that.
What puzzles me is that I measure no voltage over the open contacts of this button, when I do so
with the Band+ button I measure 3.3 Volts !
So I checked if the contact is really open and it is. I also checked the trace from the button to PB0 of the processor, it's OK !
The processor is brand new out of the box from Mouser. Soldering looks perfect under a loup lamp (nice shiny joints, no shorts).

Am I right there should be 3.3V over the open Band- button, like over the Band+ button (PB2) ??

vy 73
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: dl1dsp on 10. September 2016, 19:26:40

Hallo Uwe und alle anderen, die die Möglichkeit vermissen, die aktuelle Software direkt (also ohne USB-Stick) auf den mcHF zu laden

Hierzu ist kein "mchf-manager" oder andere Spezialsoftware erforderlich. Es reicht aus, dfu-util zu installieren. Die entsprechende Windows-Variante (wie auch die für Linux- und Mac OS X Anwender) findet sich auf der Seite

http://dfu-util.sourceforge.net/

und die eigentlichen Installationsdateien weiter auf

http://dfu-util.sourceforge.net/releases/

Hier den entsprechenden Link zum Download anklicken, die aktuelle Version ist dfu-util-0.9-win64.zip. Bei der Installation eventuell bitte den Hinweis zur (impliziten?) Nutzung von libusb 1.0 auf der Seite http://dfu-util.sourceforge.net/ beachten(Verweis auf https://github.com/libusb/libusb/wiki/Windows#How_to_use_libusb_on_Windows).

Nach Beendigung der Installation (und der ggf. nötigen Durchführung von System-Anpassungen) ist dann vorzugehen, wie bereits unter "UI-Board und Linux" ausführlich beschrieben wurde, um die Software vom PC auf den mcHF zu laden.

Vielleicht findet sich jemand der Windows-Anhänger, der die Installation und die spezielle Handhabung für den mcHF Schritt für Schritt erläutert (bei mir läuft nur Linux, so dass ich hier nur theoretisch agieren kann …)

vy 73

Winfried

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DJ3FV on 11. September 2016, 02:03:39

Hallo Andreas,

ne ne Andreas ich vermisse gar nichts! Alles bestens so wie es ist. Ich hatte mich nur in die Diskussion eingemischt und wohl "zu weit aus dem Fenster gelehnt". 8)
USB Stick, großer Port alles perfekt! :D

vy 73
Uwe

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 11. September 2016, 08:02:15

Yes - there should be 3.3V if button is not pressed.

vy 73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: dl1dsp on 11. September 2016, 08:46:23

Hello Jos,

bootloader version 1.2.0 ? May be is it not the right version of the bootloader?

BL: 1.0 --> with modification, the "small" USB connector

BL: 2.0.0 --> the "big" USB connector

vy 73

Winfried

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 11. September 2016, 12:02:27

Hi Andreas and Winfred,

Thanks for the replies

The bootloader I'm using is the one found under "Latest release version 1.2" and I guess it is bootloader version 2.0, a bit confusing is'nt it ?

Well there should be 3.3V over the opened Band- button as I supposed.
There isn't, so there is but one conclusion possible : The new processor doesn't pull-up PB0, which is vy strange for a brand new one.
Luckyly I ordered 2 of them, I will exchange it and hope for the best (hope the PCB will withstand all that mistreatmnt).

Best 73
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 11. September 2016, 17:01:10

You can try external 10K pullup to 3.3V first...

vy 73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 11. September 2016, 21:45:19


Sure Andreas, I had done that, did not help either.

Good night
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 12. September 2016, 12:27:25

Hi Andreas,

I exchanged the processor (STM32F427VIT6) this morning and you feel it coming : Makes no difference !

Installing the bootloader went flawlessly: "Upload succesfull".
Jumper J6 has been removed.
When I press the power button, button Band+ goes high (3.3V), Button Band- remains low.
I checked the Band- button for a short, it is open.
I checked for continueaty from Band- button to PB0 (pin35) of the processor : trace is 0 Ohms

Conclusion : It has no sense to press Band- button for loadng the frmware, for it is low already.

Question: What makes PB0 go high, there is no firmware loaded yet.
Should it be high by default of the processor, is it done by the bootloader or what else?

That the problem is caused by processor failure now looks unbeleavable to me.

I'm confused, remember, all went well with a 32F407VGT6 and the same USB stick in the DFU USB connector. I am even thinking of going back to the old processor but I don't like to (another attack at the PCB).

73
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 12. September 2016, 12:35:29

Hi Jos,

PB0 is pulled up by bootloader code.

I have programmed 427, 429, 429 and also 439 with new bootloader and all worked out-of-the-box.

vy73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 12. September 2016, 12:50:54

OK, the bootloader.
I took the bootloader from the website under "Latest version 1.2.0" twice, correct ?
Any other ideas ?
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 12. September 2016, 13:13:37

Hi Jos,

because of I always have flashed bootloader using STLink-V2 and Linux I started a test using Windows and DfuseTools some minutes ago. I flashed new bootloader to STM429VIT6 and all worked flawlessly.

Try download the bootloader from our "mchf Modifikationen Seite" bottom "daily snapshopts". Maybe your OS or browser is eating parts of the download - I don't know.

I do not have any idea what can go wrong. But I can guarantee that new bootloader can be flashed on "bigger" STMs using Dfuse-Tools or STLINK-V2 and works 100%.

You can try to flash the "old bootloader" which uses small USB plug. When you power on mcHF, holding BANDM pressed, with installed old bootloader, nothing connected to both plugs backlight must flash. This behaviour must be identical in both bootloaders (old and new).

vy 73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: peter_77 on 12. September 2016, 13:14:24

If you mean with "website" Andreas' github site:
https://github.com/df8oe/mchf-github/releases
than you are perfectly fine under 1.2.0.
There its the bootloader.dfu Image.
After installation with Dfuse the mcHF shows a "Bootloader 2.0.0" in the power on screen.

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 12. September 2016, 16:03:42


@ Peter
Yes, that is the one, I am using that bootloader.dfu file from there.

@ Andreas
I will do some more tsting, maybe the old bootloader and the memorystick on the mini USB connector.
Will keep you informed.
Nice weather here, 30 degrees C, no good for HAM radio :P

73 Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 12. September 2016, 16:13:06


By the way, my operating system on the PC is Windows 10 Pro 64 Bit.
I think to remember having read somewhere this is causing problems in flashing the bootloader ?

Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 12. September 2016, 16:24:04

Hi Jos,

here wheather is like hot summer, too. 25 C and sunny, sunny, sunny :)

Be patient (don't desolder STM again). We will fix it

vy73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: peter_77 on 12. September 2016, 17:38:35

I have both tested it under OS-X Yosemite and also under Winblows 10, 64Bit.
There is no issue with Win 10 and Dfuse. It works out of the box and needs no drivers etc.
Let me add that my Win 10 is still the 1511 version and not the new 1607 "Anniversary Update".


Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 12. September 2016, 18:08:13

OK Peter, mine is Windows10 Pro 64 Bit version 1511 build 10586.545
Good to hear there are no problems, Thanks
73
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 12. September 2016, 18:39:46

@ Andreas

Now I downloaded and installed bootloader.dfu from "mcHF Modificationen", no change, same problem.

Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 13. September 2016, 05:46:08

Do you have ST-LinkV2 and Linux system? That would be a chance to test if it is a Windows/Dfusetools problem.

Can you flash old bootloader and it works?

vy 73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DJ3FV on 13. September 2016, 06:45:13

Hello Jos,

did you make any modification on the USB ports (e.g. 5V)?

Are you using the USB B or the USB port?

Do you hold the Band Down Button pushed will powering on and if yes what does the LED (Green/Red) do or and/or the screen (blinking?)?

If it is not to much effort for you can you please make a short video from the flash session?

vy 73
Uwe

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: peter_77 on 13. September 2016, 08:13:08

Here is a screenshot how it should look like on Winblows 10.
(Sorry for the rest of a red line. I had a nervous finger and erased the original screenshot before ::) )
- After connecting the mcHF with Jumper 6 in place and pressed Band+ you should hear the "gong" and see STM32 Bootloader in the bottom taskbar under USB devices
- You can even do this with the UI board only if you connect GND to Pin 30 and +5V on Pin 28 (rev.0.5) See here: https://www.amateurfunk-sulingen.de/forum/index.php?board=15;action=display;threadid=517
- After starting Dfuse you must see a couple of entries under "Target ID". It should NOT be empty !
- A common error is to use the wrong upload "Choose" button to select the bootloader.dfu file ! Its the one in the Upgrade or Verify Action frame !
- After file upload you'll get the dark grey File correctly loaded bar at the bottom !
- Finally the right "Upgrade" button must be clicked to send the bootloader to the mcHF.
Hope this helps..?!
Groetjes

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 13. September 2016, 11:45:19

@ Andreas,

Do you have ST-LinkV2 and Linux system? That would be a chance to test if it is a Windows/Dfusetools problem.

Sorry, I don't.
Will load the old bootloader and try to flash via mini USB as before.
First have to connect 5V on this connector again.

Will let you know the result.
73
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 13. September 2016, 11:59:26

Before you do soldering:

Trywithout connected USB stick. If you turn on mcHF into firmware-flash-mode with correct installed bootloader and without USB stick, backlight must flash. If that is ok (for old / new bootloader) bl is installed correctly.

I cannot believe that



  • both of your STMs should be defective
  • or new bootloader does not work for you


  • I believe you do have hardware problem or flashing of bl fails (but is reported as "corrrect").

    vy73
    Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 13. September 2016, 12:21:44

@ Andreas

When I do not have USB stick connected and press Band- button and Power button, LCD does NOT flash it lits constantly.
So bootloader is NOT loaded correctly although DFU demo after loading says "Loading successful" and after verify says "Verify successful".
Tried this after having loaded the bootloader again, which went different as before.
Before it went in one phase of abt 6 seconds.
This time it took 2 phases, together taing abt 3 minutes !
Result was unchanged.

Both processors faulty, I can hardly believe that.
Hardware failure, possible, but where to look, Clock is present, 3.3V is present, big USB is connected processor soldering looks perfect (2 times) what to check more ?

Jos





Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 13. September 2016, 12:32:57

@Peter


I see the same things as you described, but one thing is different : DFU demo reports Target ID 00 Internal flash 24 sectors.
So I think you have a different processor, mine is 32F427VIT6 (2MB of flash).

Windows shows "STM32 BOOTLOADER auswerfen" after the gong as well.

73
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 13. September 2016, 12:43:33

32F427VIT6 is working with new bootloader - I have tested yesterday.

vy73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: peter_77 on 13. September 2016, 14:21:04

Should'nt that be "uitwerpen" on your PC ?? :D
Yes, i have a 32F427VGT6 on my UI Board

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 13. September 2016, 15:02:15

Should'nt that be "uitwerpen" on your PC ??
Yes, i have a 32F427VGT6 on my UI Board

Sure it says "uitwerpen" HI, could we speak Dutch ?
Well, let's not do that, others could not read.

OK on your VGT6, its 1MB that explains.

Now I am trying to load things on the UI board (version 0.4) separately, just connecting the UI-5V, to see
if something on the outside has effect on this. At first glance it did not work, so it looks like it.
So far I was just concentrated on the CPU circuitry itself. Maybe the problem is caused by the perifiral.

Finally I must succeed.

best 73
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 13. September 2016, 15:18:19

Hi Jos,

ok - I never tested with 427 and 1MB flash - but there is no reason why this will not work.

So try to test some more steps to get it located.

- does old bootloader for small plug work?
- when you start with new bootloader holding BANDM pressed - is mcHF remaining ON when you release power button?
- does backlight flash after a 1...2 seconds?

vy73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 13. September 2016, 17:14:18

Andreas

Under no circumstances I can make the LCD backlight flashing.
When I push BandM and Power button LCD backlight goes On and remains ON.
When I release BandM button LCD remains ON.
When I release Power button LCD backlight goes OFF.

Sorry you misunderstood, Peter has STM32F427VGT6 (1 MB), is working OK.
I have STM32F427VIT6 (2MB) and cannot have it loaded the bootloader as it seems..

Please be aware, that :
1) DFUdemo comunicates very well with my processor, it gives me correct info abt it.
2) DFU demo tells me that the bootloader has been uploaded correctly.
3) DFU demo tells me that it verifies the bootloader to be correct.

I just found that:
PB2 has a 4k7 pull-up resistor on the pcb, so that is why I do measure the 3.3V OK there.
PB0 does not have such resistor, so it shall have to be pulled up by the bootloader indeed, but I do not measure the 3.3V.

Should the MCU work properly (loading bootloader and firmware) when I just take the UI board seperately from the RF board and feed is by just the 5V_UI ?
That would make fault tracing more easy.

73
Jos


Title: Re:USB-Stick-Update-Bootloader NEU
Post by: DF8OE on 13. September 2016, 17:33:25

Yes,that works.

Slightly correction:

Windows tells you, that bootloader has flashed correctly,. That is not the same as it *is* flashed correctly.

If it is flashed correctly, bootloader would work...

Do you have another mcHF builder inyour surrounding so that you can try flashing with a "known-working" OS software condition?

vy73
Andreas

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 13. September 2016, 18:39:45

"Yes that works."

Oh, good, that makes it less complicated.

"Do you have another mcHF builder in your surrounding so that you can try flashing with a "known-working" OS software condition?"

Sorry, as far as I know I don't have.

OK, will continue tomorrow, can't be too difficult if it realy is a hardware problem.

73
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 13. September 2016, 18:46:20


" so that you can try flashing with a "known-working" OS software condition?"

What do you mean by that, my PC's OS software condition is out of the question.

Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 13. September 2016, 19:05:17

@ Peter

OK Peter, great, I can speak a little German also, I learned it at school, but that is long long ago.
Reading it is OK, but writing a bit more difficult :(
Speak to you later, maybe by the mcHF when it's working.

73
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: PA3CCE on 14. September 2016, 21:04:38

Hello Peter,

You say you have no problem in loading the bootloader and firmware in mcHF using Windows 10 64 bit.
As you know I have problems here.

Could you please check for me in the Device Manager of Windows, under USB Controllers/STM Device in DFU Mode/Properties//Events, if you have the errormessage there "Device could not be migrated" or not.
Although the Device Manager also says "This Device is working correctly", I have this message there and this could be the cause of my problem.

My STM driver here is "STTub30.sys V3.0B and it is certified by Microsoft, when I click"Check for updates" it says "There is no better or newer driver".

Many thanks in advance,
73
Jos

Title: Re:USB-Stick-Update-Bootloader NEU
Post by: peter_77 on 16. September 2016, 13:36:37

Goedendag Jos !

Guess thats more or less normal and one of those weired Winblows messages. ::)
I have the same message here and the Dfuse software is working perfectly well.

Groetjes


Diskussions- und Newsboard des DARC-Ortsverbandes I40 | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.