Skip to main content
mailmail9116
Associate III
Dec 9, 2012 2:22 PM UTC
Question

stm32 + gcc compiler

Posted on December 09, 2012 at 15:22

Hi All,

I have the stm3240g-eval board,currently i am working with keil uvision as my IDE + armcc,but i am willing to switch to gcc .

My question is ,does anyone have a explantion on how to configure the Eclipse to work with stm32 ? also i thinking using codesourcery or yagarto toolchain .

i have the demonstration library that i download from here ,do the peripherals drivers that are inclueded there will work also under gcc?  also the startup file whitch one should i use ? as i understant the ''truestudio'' one will be ok?

Sorry for the questions , i am a newbie in this area :)

#skinflints #gcc-for-cortex-mx
    This topic has been closed for replies.

    12 replies

    Tesla DeLorean
    Guru
    Dec 9, 2012 4:22 PM UTC
    Posted on December 09, 2012 at 17:22

    Personally I've use Yagarto, the RiDE startup, and a cleaned up linker script.

    Posted a couple of examples for the STM32F4-Discovery. Library builds fine.

    Recall running across a couple of Eclipse tutorials doing STM32 on the net.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Andrew Neil
    Super User
    Dec 10, 2012 11:07 AM UTC
    Posted on December 10, 2012 at 12:07

    Cross-post:

    http://www.keil.com/forum/21949/

     

     

    ''currently i am working with keil uvision as my IDE + armcc, but i am willing to switch to gcc''

     

    Why switch??!

     

    If you have someting that works - why not stick with it?!

    ''how to configure the Eclipse''

     

    Configuring Eclipse is

    not

    a task for a novice!!

    ''i am a newbie in this area''

    All the more reason to stick with what you already have!

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    stm32forum
    Associate III
    Dec 11, 2012 11:16 AM UTC
    frankmeyer9
    Associate III
    Dec 11, 2012 12:37 PM UTC
    Posted on December 11, 2012 at 13:37

    Michael, I guess your wording is a little imprecise:

    I have the stm3240g-eval board,currently i am working with keil uvision as my IDE + armcc,but i am willing to switch to gcc .

     

    I guess you mean the codesizelimited evaluation version, which would be a good reason to switch.

    And to agree with others, Coocox is worth a look, especially for beginners.

    Andrew Neil
    Super User
    Dec 11, 2012 1:03 PM UTC
    Posted on December 11, 2012 at 14:03

    ''I guess you mean the codesize limited evaluation version, which would be a good reason to switch''

    But then it doesn't make sense to be trying to get GCC to work with uVision - because the uVision will still be limited!!

    For a beginner, you should be able to do plenty of useful work, and gain a lot of necessary experience within the limitations of the Keil ''Lite'' version...
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    frankmeyer9
    Associate III
    Dec 11, 2012 1:22 PM UTC
    Posted on December 11, 2012 at 14:22

    But then it doesn't make sense to be trying to get GCC to work with uVision - because the uVision will still be limited!!

     

    Yes, one could understand the statements of the original poster this way...

    But I assume, switching to gcc implies for him also switching to another IDE.

    The wording in general points to private usage. And I don't know of anyone willing to pay for a full licence just for his hobby.

    But, as I said, this is an assumption.

    Guess he should clarify his issue...

    mailmail9116
    Associate III
    Dec 14, 2012 3:07 PM UTC
    Posted on December 14, 2012 at 16:07

    Hi,

    I managed to get things working,thanks everybody :)

    btw ,its not for private use,and i must say(even though that i worked with eclipse before),it is a much much better IDE that uvision

    Thanks

    Andrew Neil
    Super User
    Dec 16, 2012 5:48 PM UTC
    Posted on December 16, 2012 at 18:48

    ''But I assume, switching to gcc implies for him also switching to another IDE''

     

    In the cross-post on the Keil forum, he was specifically asking about using uVision with GCC.

    ''I don't know of anyone willing to pay for a full licence just for his hobby''

    Funny, that - why are electronics hobbyists (and some engineers) such skinflints?!

    People with other hobbies pay amounts comparable to (and in excess of) a Keil licence to pursue their hobbies - eg, sports gear, musical instruments, etc.

    http://www.8052.com/forumchat/read/177636

    But that's another discussion...
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    frankmeyer9
    Associate III
    Dec 17, 2012 7:55 AM UTC
    Posted on December 17, 2012 at 08:55

    In the cross-post on the Keil forum, he was specifically asking about using uVision with GCC.

     

    I didn't check this forum, and he wasn't too explicit here ...

    Funny, that - why are electronics hobbyists (and some engineers) such skinflints?!

     

    I meant that Keil uVision4 licence the costs as much as a small car ...

    I spent more than one order of magnitude less, for a private Crossworks licence ;)

    Andrew Neil
    Super User
    Dec 17, 2012 7:37 PM UTC
    Posted on December 17, 2012 at 20:37

    ''I meant that Keil uVision4 licence the costs as much as a small car''

     

    The free Lite version should be fine for a beginner - such as the OP;

    The 128K version is nothing like that price.

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.