Skip to main content
dorrachendoul
Associate III
Apr 10, 2013 12:51 PM UTC
Question

STM32F4 DISCOVERY on eclipse

Posted on April 10, 2013 at 14:51

Hi,

Am programming an STM32F4 Discovery on eclipse , i staeted with the IO_Toggle example but i got this errors :

Symbol 'GPIO_Pin_15' could not be resolved

Symbol 'RCC_AHB1Periph_GPIOD' could not be resolved  

Description    Resource    Path    Location    Type

make: *** [startup_src/startup_stm32f4xx.o] Erreur 1    led_v0             C/C++ Problem

Can someone help me.

Regards,

Dorra

Can someone tell me how to resolve this problem

#no-such-things-as-a-free-lunch
    This topic has been closed for replies.

    18 replies

    frankmeyer9
    Associate III
    Apr 11, 2013 1:00 PM UTC
    Posted on April 11, 2013 at 15:00

    Seems you are trying to use CodeSourcery Lite with the Atollic startup file and linker script.

    This may work, as long as you use no libraries (or Atollic versions, too).

    I never tried this combination.

    The whole build output might be helpful here (everything that appears after typing ''make'').

    That would also expand all those ${path} macros.

    dorrachendoul
    Associate III
    Apr 11, 2013 1:07 PM UTC
    Posted on April 11, 2013 at 15:07

    sorry but i couldn't figure out what do you mean exactly, what couls be the problem

    frankmeyer9
    Associate III
    Apr 11, 2013 1:25 PM UTC
    Posted on April 11, 2013 at 15:25

    sorry but i couldn't figure out what do you mean exactly, what couls be the problem

     

    Me too.

    So I think it is helpful to post all the output that the

    make

    command (or whatever) produces.

    That should be pretty much more than the error lines you posted yet.

    dorrachendoul
    Associate III
    Apr 11, 2013 2:10 PM UTC
    Posted on April 11, 2013 at 16:10

    how can i do that, because am building with eclipse and the only thing that is writting is this line

    make: *** [src/startup_stm32f40xx.o] Erreur 1       

    and other errors like :

    Symbol 'RCC_AHB1Periph_GPIOA' could not be resolved   

    Symbol 'GPIO_Pin_13' could not be resolved   

      

    frankmeyer9
    Associate III
    Apr 11, 2013 2:24 PM UTC
    Posted on April 11, 2013 at 16:24

    There is a build logfile somewhere. If you are using Linux, be aware that it's probably hidden (starts with a dot, as ''.hidden_name'', for example).

    And, if I remember correctly, there is a possibility to have that output in one of the configurable screens.

    BTW, this is one of the reasons why I don't like Eclipse ...

    dorrachendoul
    Associate III
    Apr 11, 2013 2:29 PM UTC
    Posted on April 11, 2013 at 16:29

    can i use this kind of project with another  environnement instead of eclipse?

    frankmeyer9
    Associate III
    Apr 11, 2013 2:43 PM UTC
    Posted on April 11, 2013 at 16:43

    can i use this kind of project with another  environnement instead of eclipse?

     

    That's more of a vague question. But yes, you can.

    There are trail version of most commercial IDE's, which are quite convenient to make first steps with ARM Cortex. Dealing with toolchain issues tends to be demotivating for beginners.

    If you like Eclipse, you can try Atollic Truestudio. It is Eclipse-based, and uses a gcc compiler.

    Keil and IAR have their own IDEs and compiler. I have never tried Tasking.

    For all the mentioned toolchains, you find ready-made projects in the Firmware packages provided by ST. Just open the appropriate project file for one of the example projects from the IDE, and that's it (usually).

    Andrew Neil
    Super User
    Apr 11, 2013 3:37 PM UTC
    Posted on April 11, 2013 at 17:37

    If you like Eclipse and want support, there are paid-for options with CodeSourcery.

    CodeRed also uses Eclipse, and the paid-for version supports STM32, IIRC.

    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.