STM32: Program "arm-none-linux-gnueabi-gcc" not found in PATH

OP #3533060
Lesenswert?

Hallo Leute,

ich bin grad am verzweifeln... Ich bin Linux-Anfänger und hab so gut wie 
keine Ahnung. :(

Ich verwende Opensuse 13.1 und Eclipse IDE for C/C++ Developers.

Ich habe nun schon zum 2. mal dieses Tutorial STM32F4-Discovery 
durchgearbeitet.

Ich bekomme aber immer die selbe Fehlermeldung.

"STM32: Program "arm-none-linux-gnueabi-gcc" not found in PATH"

wenn ich "arm-none-eabi-gcc --version" in der normalen Konsole eingebe 
kommt:

If 'arm-none-eabi-gcc' is not a typo you can use command-not-found to 
lookup the package that contains it, like this:
    cnf arm-none-eabi-gcc

Als Su, bekomme ich die Version aber angezeigt...

Was ist bei mir schiefgegangen und wie kann ich es beheben? Alle 
Beiträge die ich finden konnte, sind schon über diesen Punkt hinaus...


Danke schonmal für eure Hilfe ;)
#3533311
Lesenswert?

Ich hab die Toolchain in opt.

Ob das jetzt was ausmacht wenn man die Toolchain noch zusätzlich in Path
einträgt weiß ich nicht. Aber meistens mach ich sowas eh über Eclipse
nicht ausm Terminal raus.

Das mit dem Bug wusste ich noch nicht. Meine ersten Test gingen aber
alle wie gewollt.

Nur meinen J-Link hab ich noch nicht getestet...
OP #3533512
Lesenswert?

Danke für die vielen Antworten...

nur haben die mich jetzt eher verwirrt...

1. Wenn ich das Tutorial von "No y." mache, muss ich da davor alles was 
ich gemacht hab rückgängig machen? und wie??

2. was ist jetzt eigentlich der Grund für die suche nach 
arm-none-linug-gnueabi-gcc? wie kann ich das ändern?

Was mir noch aufgefallen ist, ist dass ich bei der Erstellung eines 
neuen Projekts nur "ARM Cross Target Application (End of life)" wählen 
kann. Warum "End of life"?


Komischerweise bring er im Vorkonfigurierten "Hello World Projekt" keine 
Meldung.
#3538907
Lesenswert?

Sebastian S. schrieb:

> Was mir noch aufgefallen ist, ist dass ich bei der Erstellung eines
> neuen Projekts nur "ARM Cross Target Application (End of life)" wählen
> kann. Warum "End of life"?
>
> Komischerweise bring er im Vorkonfigurierten "Hello World Projekt" keine
> Meldung.

Sorry, my German language is not good enough to fully understand your 
question.

I guess you wonder why the project template is marked "end of life". 
Because the plug-in it is using (version 0.5.x) is marked "end of life" 
and not recommended for new projects.

Please use the new version of the GNU ARM Eclipse plug-ins, they provide 
much more functionality.

Regards,

Liviu
http://gnuarmeclipse.livius.net/blog/
OP #3541346
Lesenswert?

Liviu Ionescu schrieb:
> Sebastian S. schrieb:
>
>> Was mir noch aufgefallen ist, ist dass ich bei der Erstellung eines
>> neuen Projekts nur "ARM Cross Target Application (End of life)" wählen
>> kann. Warum "End of life"?
>>
>> Komischerweise bring er im Vorkonfigurierten "Hello World Projekt" keine
>> Meldung.
>
> Sorry, my German language is not good enough to fully understand your
> question.
>
> I guess you wonder why the project template is marked "end of life".
> Because the plug-in it is using (version 0.5.x) is marked "end of life"
> and not recommended for new projects.
>
> Please use the new version of the GNU ARM Eclipse plug-ins, they provide
> much more functionality.
>
> Regards,
>
> Liviu
> http://gnuarmeclipse.livius.net/blog/

Hi Liviu

you understood right. ;) Now I tested the "Executable" Project and the 
Error is gone.

Thanks!!

But now, if i build the Blink-Sample, i get this error...
1
Description  Resource  Path  Location  Type
2
Symbol 'ENOMEM' could not be resolved  _sbrk.c  /Wecker_V1/libs/misc/src  line 39  Semantic Error
3
make: *** [libs/misc/src/_sbrk.o] Fehler 1  Wecker_V1       C/C++ Problem
4
'ENOMEM' undeclared (first use in this function)  _sbrk.c  /Wecker_V1/libs/misc/src  line 39  C/C++ Problem
Could you help me?
Gast #3541779
Lesenswert?

Also ich habe zwei Versuche gestartet, das Board mit Eclipse zu 
programmieren, aber das ist -finde ich- murks.

Ich empfehle dir diese Installationsanleitung: 
http://eliaselectronics.com/stm32f4-tutorials/setting-up-the-stm32f4-arm-development-toolchain/

Ich empfehle dir dieses 
Tutorial:http://jeremyherbert.net/get/stm32f4_getting_started

Das einzige Problem sin die Makefiles, aber da gewöhnt man sich sehr 
schnell dran.
Für mich ist es so am einfachsten.
mfg 12V
Gast #3636721
Lesenswert?

Sorry Sebastian,

It was just now that I saw your question.

The system support files in the new version of the plug-ins were 
completely redesigned, the _sbrk error should be fixed.

Please update and create a new project using the provided templates.

If you encounter further problems, for an expedite answer, please use 
the SourceForge support trackers.

Liviu
http://gnuarmeclipse.livius.net/blog/
Gast #3786388
Lesenswert?

Falls es noch jemanden interessiert:

Die Lösung für das Problem ist nicht etwa ein fehlender Parameter in der 
Path-Variable, sondern schlicht und einfach das die 32-bit libraries 
gefehlt haben.

Zumindest hatte ich gerade das gleiche Problem bei der Installation 
eines GCC Tarballs.

Unter *buntu sollte ein
sudo apt get install lib32z1 lib32ncurses5 lib32bz2-1.0
das Problem beheben.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren