Diskussions- und Newsboard des DARC-Ortsverbandes I40
allgemeine Kategorie => UHSDR Firmware => Message started by: Keine Ahnung wer der Idiot ist:p on 09. July 2019, 06:10:56

Title: {done} error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 09. July 2019, 06:10:56

Hi OM, YL, SWL's
today I compile the changed firmware file out of the eclipse development tool without any errors. The file.bin is 614kb and if I want to flash it via usb stick, I get following error code:

error 3 - flash memory to small

Any solution? How to compress? What can I do?

73 Dirk de DL

Title: Re:error: flash memory to small
Post by: DF8OE on 09. July 2019, 06:33:54

Hi Dirk,

I do not use Eclipse (I am building firmware on Linux CLI using "make"), so just hints:

614KB is very big. I think you have linked much debugging informations which is not needed for running the firmware. But 614KB fits into all MCUs because of they do have flash >= 1MB (or do you have used outdated 512KB MCU?? I hope not...)

Whatever you do have changed - your setup and/or import to Eclipse seems to be not the same we have described in WIKI... But there are many, many settings if you use Eclipse which can impact. I am not sure I have noticed correct you are using a Mac with Unix-like operating system? If so you can test a build using "make"...

EDIT:
For Eclipse it impacts what version of Eclipse you are using. There are slight differences between the versions so that it may be you have to review your settings...

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 09. July 2019, 07:25:09

Hi Andreas,
I'm a hardcore beginner and had now know-how in software development.

Here my informations to the software I use.
1. Java 1.8+ VM
(12.1 SDK)
2. GNU Arm Embedded Toolchain
(gcc-arm-none-eabi-8-2018-q4-major-mac.tar.bz2)
3. Eclipse IDE for C/C++ Development
(2019-06)
4.GNU MCU Eclipse
(4.5.1)

I don't change any settings inside Eclipse just check the format in the project to use the right template. I start a new workplace and import again. I do exactly the process y written down and after the bin-file has been created its still 614kb without any changes inside.

Title: Re:error: flash memory to small
Post by: DF8OE on 09. July 2019, 08:01:34

Hi Dirk,

maybe it is the version of Eclipse. I by myself have verified everything is working fine using Eclipse up to

Version: 2018-12 (4.10.0)
Build id: 20181214-0600

I do not think java-version can have any influence.

You can check if it is relatd to Eclipse or anything else you can build a binary using command line:

  • open a terminal
  • cd /to/the/directory/your/uhsdr/is/placed/mchf-eclipse/ (change to mchf-eclipse directory)
  • make all (build binaries for mcHF firmware)

  • After doing that you should have .hex, .bin and .dfu files in your mchf-eclipse folder. If the size is matching now your problem is located at Eclipse and its settings. If the file size is very big again there is another problem...

    Feedback welcome!

    vy 73
    Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 09. July 2019, 08:21:12

Ok Andreas,

now I reinstall Eclipse and the GNU MUC engine too.
Update all and import the zip-file to a new workspace.

I need to debug first, right, to start the "make all" command?

PS: Isn't my passion;) But I give them a tray:)

Title: Re:error: flash memory to small
Post by: DF8OE on 09. July 2019, 08:25:36

You do not need Eclipse at all for a CLI build. All is working using the toolchain (gcc) and "make". It is just typing a handful commands and all is working without any mouse moving ::) If you are building binaries Eclipse does nothing else as translating your clicks and mouse movements to CLI commands. But these commands are not the same as you are just using command "make". I am nearly sure make is in standard installation of MAC OS/X...

Please follow the steps of my last post.

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 09. July 2019, 08:55:33

Andreas,
on macOS the toolchain isn't implemented.
I have to copy them into /opt directory manually for eclipse to find automatically.

ok, now I extract the zip-file.
If I start command (make all) inside i get this error:

Dirks-MacBook:mchf-eclipse $ make all
make: gsed: Command not found
make: gsed: Command not found
make: gsed: Command not found
fatal: not a git repository (or any of the parent directories): .git
[CC] basesw/mcHF/Src/startup_stm32f407xx.o
make: arm-none-eabi-gcc: No such file or directory
make: *** [basesw/mcHF/Src/startup_stm32f407xx.o] Error 1

Title: Re:error: flash memory to small
Post by: DF8OE on 09. July 2019, 09:13:51

Of course toolchain isn't implemented - but you have installed it.

Again: I do not have any experience using commercial OS - I only have experience in working with Linux...

It seems that Mac OS/X has moved far away from Unix so that I cannot give you any further hints. And I cannot give hints which do not base on fundamental operating system knowledges.

For buliding binaries using "make" you need:

  • installed and correctly integrated in PATH environment variables "gnu-arm-gcc-toolchain"
  • installed and correctly integrated in PATH environment variables needed arm libraries
  • installed and correctly integrated in PATH environment variables "make"

  • Running Linux I only need the package manager (apt on Debian based systems, pacman/yay on Arch based systems) and let them do the installation. I thought it is similar on Mac but it seems I am wrong.

    We can approach from two sides and maybe it is easier for you to see if your produced binaries are working (and not just binary garbage)... Why do you get a "flash to small" error? How much flash does your MCU have (what kind of radio do you use)?

    vy 73
    Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 09. July 2019, 09:16:53

512kb, I take a look inside the system info of the model.

PS: Andreas, I just want to make a litte change in the fw for the correct cut-of frequencies and to open (if possible) the rx side put to 4m for listening only. Can y do the canes for me and send me the ready to use fw to flash?!

I#m not a coder and I less my fun in moment ;(

Title: Re:error: flash memory to small
Post by: DF8OE on 09. July 2019, 10:11:14

You cannot RX on 4m with existing hardware. Band cuts are without impact on RX so no changes neccessary.

And I can confirm that the "large binary" is related to the new Ecliplse 2019-6. I set up a test environment here and get the same results... Because of I normally work on console and do not use Eclipse this was out of focus for me.

This is interesting but I cannot help here at the moment.

New build binaries with changed band cuts are just cosmetic and not neccesary.

512KB?? That sounds like "cheap chinese clones"... They do use small MCU to save a few pennies and make much trouble for future firmwares >480KB ::)

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 09. July 2019, 10:27:53

I buy the Ailuance Retevis HS1plus model here in germany.
Don't want to buy a china build, but this is what I get.

The band cut's cosmetic is right, but I want to correct it for region 1.
RX on 4m isn't necessary just a mind, is 6m possible?

Thank y to make a test about different version.
I take a look for a other older one and try.

Whatever.. is there anybody who can create me the fw for my own use with my litte difference? Thanks!

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 09. July 2019, 11:48:28

I installed Eclipse 2018-12 version on same gnu-mcu pack out if market. Also gcc-arm-none-eabi-8-2018-q4-major engine but same problem, file is 614kb big ;(

Title: Re:error: flash memory to small
Post by: DB4PLE on 09. July 2019, 11:53:39

Hi,

short version: the Eclipse builds are larger than the makefile builds. So for 512k machines you have to compile using make to get a working binary.

The reason is a combination of two issues:
- The Eclipse build system cannot handle the very long command created if we build all sources files together on Windows. So we split the DSP code into a separate library.
- The compiler optimization -flto cannot be applied to the library since not all all compiler tool chains can handle this for libraries.

The result is that we get somewhat larger binaries using Eclipse.





Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 09. July 2019, 11:59:42

Ok and is there a fast easy solution for me to handle this here on my system?
I just do the basic instructions like the guide.

I also install eclipse on my windows 10 64-bit system, but if I run the debug I get a "to long path error" and it stops at step two. Shit happens;)

Title: Re:error: flash memory to small
Post by: DB4PLE on 09. July 2019, 12:11:33

Hi,

Sort of. The easiest way to build with make on Windows 10 is to install the Windows Subsystem for Linux and a linux distribution like Ubuntu and follow the linux instructions, at least if you have no fear using the linux command line.

However, flashing and debugging is not going to be as easy as with flashing straight out of Windows Eclipse.

Otherwise you can also use MinGW make to compile on Windows directly. But if you can spare the harddisk space and have Windows 10, I'd go for the Windows Substem for Linux (WSL).

However, honestly, the best solution is to get rid of the processor by swapping to the real deal with 256k RAM and at least 1MB flash...

73
Danilo





Title: Re:error: flash memory to small
Post by: DF8OE on 09. July 2019, 12:11:38

Using a 512KB MCU is out-of-date and not recommended... It is very sad that there are devices using this MCU sold today...

RX on 6m does not work, too. Only between 80m and 10m (with performance loss additionally 160m).

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 09. July 2019, 19:12:13

Die Investition stellt kein Problem da, eher der Umbau. Sagen wir mal so.. ich habe ja keine Erfahrungen damit und weis oder kann nicht abschätzen was das bedeutet.

Ich verstehe einfach nicht wieso wir das nicht kleiner bekommen.
Die 2.11.55 is doch sonst nur 350kb groß und das ist ja die selbe Basis.

Da kann man doch sicher das in Eclipse zusätzlich mit den Direktiven angeben damit das funktioniert.

Das reine make all" führt bei mir zu einem Fehler:

make all
make: gsed: Command not found
make: gsed: Command not found
make: gsed: Command not found
fatal: not a git repository (or any of the parent directories): .git
[CC] basesw/mcHF/Src/startup_stm32f407xx.o
make: arm-none-eabi-gcc: No such file or directory
make: *** [basesw/mcHF/Src/startup_stm32f407xx.o] Error 1

Title: Re:error: flash memory to small
Post by: DB4PLE on 09. July 2019, 21:01:19

Hallo,

wenn Du eine allgemeingültige Lösung findest für die Eclipse-Problematik unter Windows findest, super, immer her damit.

Das reine Make wird unter Windows auch nicht funktionieren, man muss noch die "Standard" Unix Tools installieren.

Probier doch mal https://github.com/df8oe/UHSDR/wiki/Setting-up-Firmware-Development-Software#bash-on-ubuntu-on-windows (https://github.com/df8oe/UHSDR/wiki/Setting-up-Firmware-Development-Software#bash-on-ubuntu-on-windows)

73
Danilo

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 04:47:57

Dirk hat ja einen Mac. Es scheint so dass man da einiges nachinstallieren muss - ich habe das hier gefunden:

make unter OS/X nutzen (https://www.heise.de/newsticker/)

Leider sind die Beiträge schon älter. Auf jeden Fall muss man danach suchen wie man unter dem jeweiligen Betriebssystem mit dem Makefile baut.

Es wird nicht ohne bauen mit dem Makefile gehen. Und da führen alle Wege über die Kommandozeile. Bei Windows führen sie zusätzlich in eine Sackgasse, da die Länge eines Kommandos begrenzt ist und für unser Projekt schneidet die Begrenzung den Befehl ab - daher der Umweg, auf dem Windows in WSL ein Linux zu installieren. Wenn man schon so weit geht ist mein Tipp: nehmt einen PC odr ein Notebook, das ihr wegen des Ressourcenhungers oder fehlender Treiber für aktuelle Windowse ausgemustert habt und installiert direkt ein Linux...

Ich bin übrigens seit einem Jahr weg von Debian und auf Arch Linux. Ist eine echte "Rolling Release" und die Aktualität der Software ist beeindruckend. Der neue Eclipse 2019-6 ist genauso in den Repos wie der Kernel 5.1.16 (das brandfrische Debian 10, gerade released, bringt es man gerade auf den 4.19 und selbst Debian experimental kann nicht mithalten).

EDIT:
@Danilo: Ein Satz von Dir hat mich aufhorchen lassen: Wenn Du eine
allgemeingültige Lösung findest für die Eclipse-Problematik unter Windows findest..."

Es müsste doch eine solche Lösung für Eclipse unter Linux geben, da dort die Länge der Kommandozeile ausreicht - oder liege ich da falsch?
Dann könnten wenigstens die Linux-Nutzer wieder mit Eclipse Binaries erzeugen, die dem Makefile nahekommen. Mit dem 2019-6 ist mein Verhältnis zu Eclipse nämlich wieder besser geworden. Waren die Versionen davor noch träge ohne Ende so geht diese Version deutlich flotter zu Werke.

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 06:33:35

Hallo Andreas,

alles was du zum Thema schreibst hat Hand und Fuß, beeindruckend, danke!
Das UHSDR-Projekt ist seiner Zeit voraus.. einiges konnte ich ja am Gerät direkt ausprobieren bevor ich auf die Idee kam es für meine Ansprüche zu idealisieren.

Leider, leider ging das nu nicht so schnell und reibungslos. Ich gebe aber noch nicht auf und schaue mal ob ich heraus finden kann, wie das unter MacOS mit MAKE möglich ist und ob ich damit zum Ziel komme. Die Eclipse 2018er Version wie von dir oben schon mitgeteilt habe ich inzwischen auch zur Hand. Das aber nur die Basis, es geht ja wirklich um die arm-none und dessen Erweiterungen. Im Terminal gehen die Grundfunktionen problemlos, aber ich laufe direkt in andere Fehler. Wir werden sehen..

Unter Windows habe ich es gestern auch versucht.. das ging soweit gut bis ich ein Fehler erhalten habe der im Zusammenhang mit zu langen Zeitfolgen stand. Dann war mir klar, hier stelle ich die Versuche gleich mal ein.

Danach mußte ich mal den Kopf frei bekommen und habe daher das Gerät mal rüber zum Messplatz getragen, was ja keine nAufwand ist;) Ich habe die Bandfilter mal kurz durchgemessen und auch hier bestätige ich ganz klar, was schon mitgeteilt wurde, oberhalb 32 MHz ist es sinnfrei auch nur zu Hören die Kiste wird taub, wie es sich auch eigentlich gehört. Eine Erweiterung hinaus ist sicher nur mit Hardwareeingriff zu realisieren, wenn überhaupt, auf Grund der mathematischen Architektur.

Was mich ja wieder zum Punkt Meiners Anliegend brachte. Mir ging es darum das ich zur nächsten Notfunk Übung mit dem kleinen auch mitspielen kann. Hierzu hatte ich mir schon die Erlaubnis geholt und wolle sogar soweit gehen ihn für zukünftige Ereignisse abnehmen zu lassen. Dafür sollte er halt auf den erweiterten Frequenzen auch sauber abliefern. Zudem wollte ich dann gleich die Bandgrenzen nach IARU Region 1 idealisieren, also alles in allem einen Rundumschlag machen. Daher komme ich um die Anpassung der FW nicht herum oder verwerfe meine Idee restlos. Ich habe eine IC-7300 der aktuell diesen Job übernimmt, dat Teil ist mir aber samt Akku Pack und Koffer einfach zu groß, hier ist der Kleine ein Knüller wenn es um Mobilität geht.

Ich weis nicht ob ich mich zusammen reiße und irgendwo eine VM mit Linux aufsetze, aber danke dir für die Tips zur Basis. Ich muß wirklich erstmal nachdenken ob ich da so viel Zeit rein stecken kann wie wohl benötigt wird. Auch das ich wohl so einen "Klon" habe stimmt mich traurig, denn das wollte ich beim Kauf ja vermeiden.

73, Dirk

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 07:33:49

Mit Linux startet das Kompilieren schneller als Eclipse nach dem Klicken überhaupt ein Fenster geöffnet hat...

Unter Linux gibt man auf einer Konsole einfach ein:

Code:

cd ~/hier/ist/der/Pfad/zu/mchf-eclipse
make all

Dafür benötigt man nur wenige Sekunden.
Bei mir geht es sogar NOCH SCHNELLER. Ich habe speziell für alles was den Bau und die Veröffentlichung von Firmware- und Bootloader-Binaries angeht ein kleines Bash-Script zusammengenagelt was unter /usr/local/bin platziert ist und "fwbuild" heißt. Da dieser Pfad mit in den "Suchpfaden" für auf der Konsole eingegebene Befehle ist reicht es wenn ich

Code:

fwb gefolgt von der <TAB>-Taste

eingebe. Da es keinen Befehl gibt außer meinem der mit "fwb" anfängt ergänzt die Bash den "fwb" automatisch zu fwbuild. Man könnte also fast sagen dass ich den Befehl eher aufgerufen habe bevor man mit der Maus auf dem Eclipse-Symbol ist und doppelgeklickt hat 8)

Das Bauen selbst geht dann auch nochmal deutlich schneller als mit Eclipse.

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 07:56:27

..ich bin auch einen Schritt weiter!

Kann mit "make" jetzt direkt arbeiten, erhalte aber einen Abbruch während dem comp. siehe angehängtes Bild.


Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 08:25:48

Oje oje ojeee..

Es nimmt kein Ende:-p
Geht eigentlich schon bei "make" los das er die .git Dateien haben möchte. Diese kann ich aber nur direkt ziehen, sie werden nicht beim Import mit Eclipse erzeugt oder sind im zip-file enthalten. So oder so.. der aktuelle Fehler kommt in beiden Fällen!

Dann unter Eclipse das anlegen der Projekt-Dateien. Die zur DSP sind fehlerfrei, die zum mcHF melden zwei Warnings, siehe hier:



]Das aber nur zusätzlich.. der Fehler oben in der console, hat heir wer eine Lösung zur Hand oder einen Ansatz wie ich weiter machen kann?!?

arm-none-eabi-g++: error: ./firmware_obj_list.lst: No such file or directory
make: *** [fw-mchf.elf] Error 1


PS: Wer ist denn nu hier der Programmierer? Ich bins nicht, ich habe absolut keine Ahnung was ich da mache.. das ist nur Bastelei:)

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 08:46:35

Meinst du das Andy?


Bei mir ist das auch die Standart-Auswahl.

PS: Lass dich aber nicht durcheinander bringen bei deinem GAMEPLAN^^
Wie gesagt.. ich spiele nur rum und mache eine Art Selbststudium :-D

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 08:49:29

Also.....

mit dem Makefile (also dem Aufruf "make all") braucht es

  • kein git, Repo oder einen Zugriff auf irgendsowas
  • keine Reihenfolge - einfach "make all" eingeben im mchf-eclipse-Verzeichnis und <ENTER> drücken


  • Leider ist dein Screenshot exakt an der Stelle wo es interessant wird abgeschnitten. Vermutlich ist das Makefile in Bezug auf einen Mac nicht komplett lauffähig - das bekommen wir aber hin!

    vy 73
    Andreas

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 08:51:50

Wohl gemerkt: Ich rede vom Makefile - nicht von Eclipse!!!

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 09:00:44

Ich kann nur bestätigen dass das Makefile unter Linux nach wie vor einwandfrei ist und saubere, kleine Binaries erzeugt. Wie geschrieben einfach durch den Aufruf "make all" im Verzeichnis, in dem auch die Datei "Makefile" liegt.

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: DB4PLE on 10. July 2019, 09:47:27

Hallo,

Eclipse allgemein:
- Neuere Eclipse haben eine andere Toolbar, da ist die Launch Configuration sehr prominent sichtbar und die Buildkonfigurationsauswahl ist entweder übers Project Menü oder das kleine Dreieck rechts neben dem "zweiten" Hammer im Toolbar wählbar.

- Wichtig: Launch Configuration != Build Configuration
- Wichtig: Einmal die "mcHF Library" (oder OVI40F7 / OVI40H7 Lib, je nach Device bauen) per Auswahl der aktiven Build Configuration (Menu "Project"->"Build Configuration" oder das Za) und dann auf "mcHF FW" oder "mcHF BL" schalten.

Die aktive Buildkonfiguration bestimmt z.B. das Ausgrauen von nicht genutzten Codeteilen.
Die Launchkonfiguration bestimmt, was aufs Device geflasht wird. Das kann ein ganz anderer Build sein, der dann auch noch gebaut wird. Um Konfusion zu vermeiden, sollten Launchkonfiguration und die aktive Buildkonfiguration zusammenpassen. Der Hammer ganz links mit dem Kästchen aussen rum baut die Buildkonfiguration die zur gewählten Launchkonfiguration passt.
Der 2. Hammer baut die aktive Buildkonfiguration. Alles klar? Hinweis: Ich habe mir dieses UI nicht ausgedacht.

Eclipse Windows:
- Es würde unter Linux und MacOS möglich sein, alles in einem Rutsch zu bauen, das würde aber bedeuten, das alle Buildkonfigurationen UND Launchkonfigurationen für die Firmware doppelt gepflegt werden müssen, mit dem Risiko von Inkonsistenzen bei der Konfiguration und der Nutzerverwirrung da manche Konfigurationen für Windows sind und andere für MacOS/Linux. Ich ziehe mir diesen Schuh nicht an. Die Aufteilung reduziert auch die unter Eclipse nicht unerhebliche Buildzeit.


- Bauen auf dem Mac:

Es kann gut sein, das unter dem Mac Problem auftreten, da dort nicht durchgängig die GNU-Varianten der Unix-Tools verwendet werden, und dadurch teilweise andere Parameter zu verwenden sind, oder bestimmte Funktionen so garnicht vorhanden sind.

Deswegen gibt es ja im Makefile ein paar Anpassungen für MacOS, z.B. gsed statt sed (gsed auf dem Mac entspricht sed auf Linux/Windows MinGW).


Zum konkreten Problem mit make:

Wir verwenden die Make Function file in "$(file ...)". Die muss vorhanden sein, sonst klappt das Kompilieren nicht. GNU Make hat diese Funktion.

73
Danilo

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 10:06:23

Thommy, gut zwischen den Zeilen gelesen, ich bin der Dörki:p

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 10:10:24

Andreas
ja.. das ist aus dem Terminal gestartet direkt nach dem entdecken der zip-Datei. ganz ohne XY-Software. Der Teil unten, der abgeschnittene.. da kommt nichts weiter.. da steht nur der prompt mit meinem Benutzername zum Hash.

Also ich bekomme den Fehler so und nicht weiter wenn ich mit "make all" im terminal arbeite.

PS: Warum das jetzt geht^^ Ich übergebe den gcc-arm mit Pfad Manuel aus /opt wo beim macOS der compiler abgelegt werden muß.
@Danilo, uf Digga.. ok.. ich versuche weiter Licht rein zu bringen! Aber warum ist die Datei nicht vorhanden, wie kann ich sie erzeugen?!

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 10:13:03

Quote:
Es kann gut sein, das unter dem Mac Problem auftreten, da dort nicht durchgängig die GNU-Varianten der Unix-Tools verwendet werden, und dadurch teilweise andere Parameter zu verwenden sind, oder bestimmte Funktionen so garnicht vorhanden sind.


...genau das meinte ich mit "It seems that Mac OS/X has moved far away from Unix..." Weswegen man Gehirnschmalz, Zeit und Mühe investiert um etwas vorhandenes, funktionierendes vom existenten Standard zu entfernen entzieht sich meiner Logik. Allerdings denke ich auch rein Nutzer-orientiert und nicht Hersteller-orientiert (z.B. "mit welchen Tricks mache ich meine Nutzer von mir abhängig bzw. verhindere dass Sie auf irgendwas anderes abtrünnig werden")...

Vielleicht fuchse ich mich irgendwann mal durch und erstelle eine Eclipse-Konfig die nicht an den Windows-Beschränkungen begrenzt wird. Aber das hat NULL Priorität...

Wir sollten am Makefile-Build für den Mac dranbleiben. Das sollte einfacher zu fixen sein.

Dafür brauchen wir absolut exakte Meldungen bzw. Fehlerausgaben.

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 10:15:45

die Meldung mit "make all" aus dem Terminal:

Dirks-MacBook:mchf-eclipse $ make all
fatal: not a git repository (or any of the parent directories): .git
[LD] fw-mchf.elf
arm-none-eabi-g++: error: ./firmware_obj_list.lst: No such file or directory
make: *** [fw-mchf.elf] Error 1
Dirks-MacBook:mchf-eclipse $

Der Fehler komm wie in anderem Bild gezeigt nachdem er einiges vorbereitet hat. Ab hier geht es nicht weiter, Ende.

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 10:17:21

Dirk - unsere Post haben sich überschnitten.

Du hast also das zip ausgepackt und dann bist Du auf einem Terminal mit cd in das mchf-eclipse-Verzeichnis gewechselt?

Vielleicht ist die Pfadangabe der Toolchain nicht korrekt.

Starte den Build mal mit


Code:

export OPT_GCC_ARM=/opt/und/so/weiter/zu/den/toolchainbins
make all


vy 73
Andreas

Title: Re:error: flash memory to small
Post by: DB4PLE on 10. July 2019, 10:18:48

Hallo Andreas,

probier es gerne aus.
Das Erstellen einer neuen Eclipse-Build-Konfiguration als Kopie einer vorhandenen Build-Konfig ist ja auch nicht das Problem, da muss man "lediglich" alle in der jeweiligen Lib erfassten Dateien hinzufügen (was über Hinzufügen von Verzeichnissen und Ausschlüsse von Unterverzeichnissen/Dateien funktioniert).

Das eigentliche Problem ist die "laufende" Wartung der Settings, denn die sind nach dem Kopieren "doppelt" vorhanden und müssen dann gemeinsam geändert werden. Da ist ein Makefile schon pflegeleichter, in dem soviel wie möglich nicht dupliziert wird.
Und die Tatsache, das wir dann noch mind. 3 Buildkonfigurationen haben.

73
Danilo

Title: Re:error: flash memory to small
Post by: DB4PLE on 10. July 2019, 10:23:30

Hallo Dirk/Andreas,

ohne GNU make wird es wohl nicht gehen und mit dem GCC kommt wahrscheinlich kein GNU make, das muss extra installiert werden.

Quote from: DF8OE on 10. July 2019, 10:17:21
Dirk - unsere Post haben sich überschnitten.

Du hast also das zip ausgepackt und dann bist Du auf einem Terminal mit cd in das mchf-eclipse-Verzeichnis gewechselt?

Vielleicht ist die Pfadangabe der Toolchain nicht korrekt.

Starte den Build mal mit


Code:

export OPT_GCC_ARM=/opt/und/so/weiter/zu/den/toolchainbins
make all


vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 10:23:53


Code:
export OPT_GCC_ARM=/opt/gcc-arm-none-eabi-8-2018-q4-major


Das muß ich angeben damit die ARM rennt, richtig. Das war auch das Problem bis gestern, das ich das nicht gemacht hatte und somit die lib's etc. nicht gefunden wurden (terminal). Eclipse findet das automatisch wenn es in /opt liegt.

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 10:24:32

@Danilo

ich weiß.... Deswegen brenne ich auch nicht darauf das zu machen ::)

@Dirk
ich suche...

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 10:28:13

@Dirk:

entferne mal Zeile 144 aus der Datei Makefile und versuche es nochmal.

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: DB4PLE on 10. July 2019, 10:31:25

Hallo Dirk,
Quote from: MFT on 10. July 2019, 10:15:45
die Meldung mit "make all" aus dem Terminal:

Dirks-MacBook:mchf-eclipse $ make all
fatal: not a git repository (or any of the parent directories): .git
[LD] fw-mchf.elf
arm-none-eabi-g++: error: ./firmware_obj_list.lst: No such file or directory
make: *** [fw-mchf.elf] Error 1
Dirks-MacBook:mchf-eclipse $

Der Fehler komm wie in anderem Bild gezeigt nachdem er einiges vorbereitet hat. Ab hier geht es nicht weiter, Ende.


Wie gesagt, die fehlende Datei wird über einen speziellen Befehl im Make erzeugt:

https://github.com/df8oe/UHSDR/blob/active-devel/mchf-eclipse/Makefile#L340 (https://github.com/df8oe/UHSDR/blob/active-devel/mchf-eclipse/Makefile#L340)

Leider ist es so, wenn das MacOS make den Befehl nicht kennt, dann gibt es leider nicht dort eine Fehlermeldung, sondern erst im nächsten Schritt, wenn die eigentlich zu erzeugende Datei vermisst wird...

Also: GNU make installieren und verwenden und es sollte klappen.

@Andreas: Zeile 144 muss nicht zwingend entfernt werden, wenn man mit der Fehlermeldung leben kann.

73
Danilo



Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 10:41:51

@Danilo

...wenn aber die Builds der einzelnen .c - Dateien soweit schon stattfinden nach dem Aufruf von "make all" ist make bereits installiert.

Warten wir mal ab was Dirk schreibt ::)...

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: DB4PLE on 10. July 2019, 10:53:02

Hallo Andreas,

klar hat Dirk make. Aber es ist mit ziemlicher Sicherheit ein FALSCHES make. D.h. ein make, das die file Funktion nicht kennt.


Code:
make -v


kann uns das verraten.
@Dirk: ruf doch bitte mal o.g. Kommando auf. Danke!
Bei mir unter Ubuntu kommt da z.B.:


Code:

GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


73
Danilo

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 11:00:50

Danilo,

wo finde ich das gnu make für Mac OS?
Hier habe ich eine Quelle, aber das sieht nicht so aus als könnte ich das nutzen, oder?

http://ftp.gnu.org/gnu/make/

Und vor allem wie?
Der Befehl "make" läuft ja im Moment aus der gcc repro, wenn ich das in OSX ändern muß, muß ich da auch was trimmen, denn er will ganz klar diese und keine andere.

Ich habe noch was dazu gefunden:

# Download gnu make-4.1.tar.gz from gnu website.
./configure
make
sudo make install

Als B. aktuell ist die 4.2er, egal. Sollte das erstmal mein Schritt sein? Was meinst du?

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 11:04:23


Code:
Dirks-MacBook:/ $ cd opt/make-4.2/
Dirks-MacBook:make-4.2 $ make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0
Dirks-MacBook:make-4.2 $


PS: Habe es nicht installiert nur unter /opt/make-4.2 entpackt

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 11:05:42

Quote:
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


Also das ist GNU make. Oder Apple hält sich nicht an die GPL. Die gilt ja auch für alle anderen - nur nicht für Apple und Microsoft...

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 11:34:28

Der Fehler bleibt der selbe auch mit:

GNU MCU Eclipse ARM Embedded GCC v8.2.1-1.7 20190524


Code:
Dirks-MacBook:mchf-eclipse $ export OPT_GCC_ARM=/opt/8.2.1-1.7-20190524-0603/
Dirks-MacBook:mchf-eclipse $ make all
fatal: not a git repository (or any of the parent directories): .git
[LD] fw-mchf.elf
arm-none-eabi-g++: error: ./firmware_obj_list.lst: No such file or directory
make: *** [fw-mchf.elf] Error 1
Dirks-MacBook:mchf-eclipse $

Title: Re:error: flash memory to small
Post by: DB4PLE on 10. July 2019, 11:34:52

Hallo,

ja aber offensichtlich gibt es file noch nicht so lange:

https://stackoverflow.com/questions/23548651/using-makes-file-function (https://stackoverflow.com/questions/23548651/using-makes-file-function)

Irgendwie haben wir das auch schon mal diskutiert...

Wir sollten ins Makefile eine Erkennung der Makeversion einbauen...

EDIT: Es braucht 4.0 als Minimum bei uns.

73
Danilo

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 11:52:01

@Dirk

gibt es denn in deinem mchf-eclipse-Verzeichnis eine Datei namens firmware_obj_list.lst wenn der Fehler auftaucht?

@Danilo
ja, hatten wir diskutiert. Ist gefühlt schon 2 Jahre her. Ich denke wir sollten make mit > 4.0 voraussetzen und keine Erkennung einbauen.

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: DB4PLE on 10. July 2019, 11:57:35

Hallo Andreas,

aber Dirk hat gnu make 3.81 (also zu alt) und das hat uns jetzt viele Posts gekostet. Eine Erkennung UND Dokumentation hätte uns da früher drauf gebracht.

73
Danilo

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 11:59:41

Du hast Recht. Ich habe da in dem vielen hin- und her deine Ausgabe von make für die von Dirk gehalten :'(...

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 12:38:55

Ich habe make-4.2 geladen, eine neuere finde ich nicht!
mit make -v wir v3.81 ausgegeben, das ist mir auch aufgefallen.

Ok, jemand ne info wo ich die passende version finden kann?

Verwendet wird hier ein macOS High Sierra 10.13.6

--update

Code:
Dirks-MacBook:mchf-eclipse $ brew install make
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/make-4.2.1_1.high_sierra.bo
==> Downloading from https://akamai.bintray.com/d1/d1788bda69cb9fad4fa9225ee1115
######################################################################## 100.0%
==> Pouring make-4.2.1_1.high_sierra.bottle.3.tar.gz
==> Caveats
GNU "make" has been installed as "gmake".
If you need to use it as "make", you can add a "gnubin" directory
to your PATH from your bashrc like:

PATH="/usr/local/opt/make/libexec/gnubin:$PATH"
==> Summary
???? /usr/local/Cellar/make/4.2.1_1: 15 files, 959.4KB


sudele.. make habe ich separat bereit gestellt.

Weis wer wie ich den Pfad nun ändern kann das diese Version verwendet wird?!

Title: Re:error: flash memory to small
Post by: DB4PLE on 10. July 2019, 13:28:47

Hallo Dirk,

die Antwort steht in deinem Post:

Führe das Kommando

Code:

PATH="/usr/local/opt/make/libexec/gnubin:$PATH"

aus (einmalig in dem Terminal) und dann make -v aus. Das sollte dann 4.2.1 anzeigen.

Sofern du nicht dauerhaft o.g. Pfad nutzen willst, musst Du das Kommando jedesmal ausführen.
Ansonsten (wenn es immer aktiv sein soll) in die passende Startup-Datei deiner Shell schreiben.
Bei bash wäre das .profile in deinem Home-Verzeichnis, bei zsh sagt dir "man zsh" oder google die Antwort.

73
Danilo


Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 19:08:49

Danke Danilo, jup richtig..


Code:
GNU Make 4.2.1
Built for x86_64-apple-darwin17.7.0
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


Irgendwie wird's schon grau um mich, nicht meine Welt .. aber trotzdem, ich bleibe am Start. Morgen Früh dann neues von der Mac-Front;) Komme gerade aus dem Garten, ein paar Freunde und OM's haben meine neue Antennenkonstruktion begutachtet und wir haben einen kleinen drauf gemacht :-D Muss auch sein.. wenn man schon etwas Freizeit hat.

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 19:13:34

Völlig richtig Dirk 8).

Aber heutzutage ist Software ein nicht wegzudenkender Teil JEDER Technik - auch des Amateurfunks.

Viele ältere OMs ignorieren das und wettern über "uninteressierte Jugend". Vielleicht sollten die sich lieber mit aktuellen Themen wie Software beschäftigen bevor sie wettern - "alles ist eine Frage des Bezugspunktes"...

Willkommen in der "neuen" Welt aus Amateurfunk, Makerszene und Programmieren...

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 19:18:22

Zum drüber nachdenken..


Code:
Dirks-MacBook:mchf-eclipse $ make all
fatal: not a git repository (or any of the parent directories): .git
[LD] fw-mchf.elf
rm -f firmware_obj_list.lst
[BIN] fw-mchf.hex
text    data    bss    dec    hex   filename
352224    2164    95276    449664    6dc80   fw-mchf.elf
copy from `fw-mchf.elf' [elf32-littlearm] to `fw-mchf.hex' [ihex]
[H2D] fw-mchf.dfu
text    data    bss    dec    hex   filename
0    354388    0    354388    56854   fw-mchf.hex
Loading fw-mchf.hex...
Start: 0x08010000
End : 0x08066853
Saving fw-mchf.dfu...
Device ID: 0x0483:0xdf11
Target name: application
[OBJC] fw-mchf.bin
text    data    bss    dec    hex   filename
352224    2164    95276    449664    6dc80   fw-mchf.elf
copy from `fw-mchf.elf' [elf32-littlearm] to `fw-mchf.bin' [binary]
# compile the firmware ARM-executables .bin / .elf and .dfu, generate .map
using arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 8-2018-q4-major) 8.2.1 20181213 (release) [gcc-8-branch revision 267074]
make: execvp: ./support/ui/menu/mk-menu-handbook: Permission denied
make: *** [Makefile:352: mchf.handbook] Error 127
rm fw-mchf.hex
Dirks-MacBook:mchf-eclipse $


:-D



Kann ich mich nu ans editieren wagen ?!

Title: Re:error: flash memory to small
Post by: DF8OE on 10. July 2019, 19:21:18

Du solltest jetzt ein .bin und .dfu mit kleiner Abmessung haben.

Alle anderen Fehlermeldungen betreffen Dinge wie Handbücher etc. - ignoriere sie einfach. Schau in deinem Verzeichnis nach - da sind die .bin und .dfu - Files ::)

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 10. July 2019, 19:46:29


Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 11. July 2019, 04:13:02

..ich bin noch skeptisch.. muß das file erst auf der Kiste haben dann *freude! :p

Ohne die Hilfe aller hier wäre ich niemals soweit gekommen, vielen Dank!

Hier noch was das ich während dem Compilern erhalte:

Title: Re:error: flash memory to small
Post by: DF8OE on 11. July 2019, 04:59:22

Die Warnmeldung kommt bei mir nicht. Komisch - wir arbeiten doch mit demselben Quellcode und denselben Compilereinstellungen, da Makefile-gesteuert?! Dürfte aber am Komma am Ende der Zeile liegen - da folgt ja kein weiteres Element mehr...


EDIT:
Das Aufspielen geht einfach mit dem USB-Stick. Und wenn ich an der FW bastle und sehr oft flashe, verwende ich entweder dfu (mit USB-Kabel) oder den ST-Link. Beides spreche ich ebenfalls auf der Kommandozeile an.

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 11. July 2019, 05:13:37

Allgemeine Verständnisfrage noch zum bzw. nach dem Update der FW.

Wir habe ja zwei Geräte. Das eine war eine Jungfrau, die habe ich mit dem BL und dann mit eurer FW (2.11.55) am gestern Nachmittag aktualisiert.

Nach dem ersten Start kam dann die Meldung mit Verzögerung und zur Info das der TS kalibriert werden muß, alles gut. Meine Frage aber, bei meinem Gerät hatte ich schon einige FW's ausprobiert und es kommt diese Meldung nicht mehr. Werden hier irgendwelche "Altlasten" mit im EEPROM abgelegt oder wie kommt das?

Title: Re:error: flash memory to small
Post by: DF8OE on 11. July 2019, 05:19:09

Selbstverständlich werden *jede Menge* Einstellungen im EEPROM abgelegt - bei jedem Ausschalten!

Und wenn man zwischen Firmwares hin- und herspringt kann man sich eventuell "Mist" einfangen, besonders, wenn man ZURÜCKspringt. In neueren FWs kann es Einstellungen geben die ältere FWs nicht kennen.


EDIT:
Warum genau bei Dir die Meldung auf dem zweiten Gerät nicht kommt kann ich Dir auf die Ferne nicht sagen - nur raten (der Wahrscheinlichkeit nach absteigend:

  • auf dem Gerät wurde kein Touchscreencontroller erkannt
  • Du hast den Touchscreen schon mal kalibriert
  • die config ist beschädigt

  • vy 73
    Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 11. July 2019, 05:25:48

Ok, und wie kann ich den "Mist" los werden?

PS: Zum Fehler oben oder besser dem "Warning", diesen erhalte ich immer wenn ich mit .git die resource lade und dann direkt mit make los lege. Gehe ich in die angegebene Datei, ändere was und starte make erneut kommt es nicht mehr. Das Selbe ist auch wenn ich nach dem ersten Laden gleich was ändere kommt die Warnung auch aber auch kein weiteres mal. Da ich ja kein Coder bin verstehe ich das nicht;)

Title: Re:error: flash memory to small
Post by: DF8OE on 11. July 2019, 05:33:33

Starte mit einer "clean Config". Dazu drückst Du F1-F3-F5 gleichzeitig, hältst sie gedrückt und schaltest den TRX damit ein. Warte bis die Meldung erscheint dann kannst Du die drei Knöpfe wieder loslassen.

Diese (und andere) Tastenkombinationen findest Du im Wiki (https://github.com/df8oe/UHSDR/wiki/Operating-Manual) auf GitHub.

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: DF8OE on 11. July 2019, 05:36:34

Zur Warnung:
Wenn Du zwischen zwei Builds kein "make clean" gemacht hast werden nur die Blöcke neu gebaut bei denen Du im Sourcecode was geändert hast. Machst Du dazwischen ein "make clean" werden ALLE Blöcke neu gebaut. Daran kann das liegen (mal da - mal nicht).

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 11. July 2019, 06:53:55

Danke.

Ok ich lerne, lerne, lerne dazu^^

Wo, in welchem Bereich, stelle ich denn betriebstechnische Fragen bzw. Funktionelles und Fehlerchen? Z.B. steht bei FreeDV nun kein SQL mehr zur verfügung wie in meiner alten FW damals, was mir völlig unklar ist, nu muß ich dem Geknatters zuhören, wobei das ja so geil war am der Digitalen Betriebsart, das ich Ruhe hatte. Wie wird sowas diskutiert?

Title: Re:error: flash memory to small
Post by: DF8OE on 11. July 2019, 07:13:27

1) Featurewünsche, Bugs etc. kannst Du in zwei Bereichen diskutieren:
i) in den Github-Issues (recommended)
ii) hier im Forum in diesem Board

2) Squelch
Das ist kein Bug - es ist ein Feature, eingeführt auf vielfachen Wunsch. Wenn kein FDV-Empfang ist wusste niemand, ob nicht doch ein schwaches fdv-Signal irgendwo "drunterliegt". Daher wird bei fehlender FDV-Erkennung das SSB-Signal durchgeschliffen.

vy 73
Andreas

Title: Re:error: flash memory to small
Post by: Keine Ahnung wer der Idiot ist:p on 11. July 2019, 07:55:18

Okidoki.

Logisch, kann ich auch gut verstehen, Betriebstechnisch für die Plauderei um die Ecke war es einfach klasse das die Kiste "still" war ;p Kann ich hier also keinen Einfluß mehr drauf nehmen für mein persönliches Wohlbefinden der mächtigen Ruhe?

Das soll dann auch nicht weiter Thema hier sein, kann ich ja mal noch eine neues im Forum zu aufmachen um die Erfahrungen nachvollziehen zu können.

Welche Rubriken für was, Allgemeines/Bugs/Inovationen oder auch nur Auffälliges. Wo darf ich da genau issue'n..


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