Skip to main content
dorrachendoul
Associate III
April 12, 2013
Question

STM32F40G_eval+linux+eclipse+code sourcey

  • April 12, 2013
  • 10 replies
  • 2029 views
Posted on April 12, 2013 at 11:41

Hi,

Am programming my stm32 using eclipse on linux, i configured link resources and i added path, but am having this error:

Program ''arm-none-eabi-gcc'' not found in PATH 

I don' know why i have this error because i think that i' ve added :

- path in properties -> environnement and in discovery otions.

isn't it enough.

Can someone pease help me.

  

    This topic has been closed for replies.

    10 replies

    Tesla DeLorean
    Guru
    April 12, 2013
    Posted on April 12, 2013 at 15:45

    If you open a console can you run it from the command line?

    Is it installed properly?

    What's in your PATH environment variable?

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    dorrachendoul
    Associate III
    April 12, 2013
    Posted on April 12, 2013 at 16:27

    the path is :

    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/user /CodeSourcery/Sourcery_G++_Lite/bin;${PATH}

    Any help please?

    jean-michel-62
    Visitor II
    April 12, 2013
    Posted on April 12, 2013 at 23:26

    Hi,

    Is there a space between ''user'' and ''/Codesourcery'' ?

    Or is it a typo only in the message ?

    dorrachendoul
    Associate III
    April 15, 2013
    Posted on April 15, 2013 at 09:55

    Hi,

    No, there is no space

    crt2
    Visitor II
    April 15, 2013
    Posted on April 15, 2013 at 11:08

    In Ubuntu in bashrc file you add the line - that will solve your problem:

    export PATH=''$PATH'':~/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin/

    frankmeyer9
    Associate III
    April 15, 2013
    Posted on April 15, 2013 at 11:10

    There are ways to add paths permanenty (i.e. by some scripts invoked at startup), but this depends on the Linux distribution. Just use a search engine and the right key words.

    The disadvantage of this method - you can have just one of this toolchains who name their binaries arm-none-eabi-xxx, because it whould overshadow all others. Configuring your IDE would be the better way.

    dorrachendoul
    Associate III
    April 15, 2013
    Posted on April 15, 2013 at 11:18

    I added the line but i still have this error :

    Program ''arm-none-eabi-gcc'' not found in PATH  

    dorrachendoul
    Associate III
    April 15, 2013
    Posted on April 15, 2013 at 11:23

    I ve already configured it .

    in Arm sourcery Linus GCC Assembler i ve browsed  :/home/dorra/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-as

    and in Arm sourcery Linus GCC C compiler i ve browsed: /home/dorra/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-gcc

    jean-michel-62
    Visitor II
    May 3, 2013
    Posted on May 03, 2013 at 20:53

    Sorry for replying so late, but could you try the commands :

    arm-none-eabi-gcc -v

    and,

    which arm-none-eabi-gcc

    in a terminal ?

    If the first one if sucessfull,it means the compiler is available to the system; and in such a case, the second command will tell you where's the compiler file.

    I also recommend you to keep automatic discovery of the toolchain ...

    Hope this helps !

    frankmeyer9
    Associate III
    May 4, 2013
    Posted on May 04, 2013 at 13:23

    Try this:

    In a terminal, execute:

    PATH=$PATH:/home/dorra/CodeSourcery/Sourcery_G++_Lite/bin

    export PATH Then start your IDE (eclipse) from the very same terminal. If that works, you can either: - add this path to the PATH variable permanently; How and where this could be done depends on your linux distribution and the default shell. Try google. - always start eclipse from a shell; Instead of starting eclipse directly, start it from a small shell script. For convenience, you can enter this script in the command property of the menu, instead of ''/usr/bin/eclipse''. The shell script could look like this (I'm using bash here ...)

    #! /bin/bash
    PATH=$PATH:/home/dorra/CodeSourcery/Sourcery_G++_Lite/bin
    export PATH
    /usr/bin/eclipse