cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 DISCOVERY on eclipse

dorrachendoul
Associate II
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
18 REPLIES 18
dorrachendoul
Associate II
Posted on April 11, 2013 at 14:23

am using gnu arm toolchain, first

I Set C Compiler’s directories

''${workspace_loc:/${ProjName}/startup_src}''

''${workspace_loc:/${ProjName}/librarie/Common}''

''${workspace_loc:/${ProjName}/librarie/Device/ST/STM32F4xx/Include}''

''${workspace_loc:/${ProjName}/librarie/STM3240_41_G_EVAL}''

''${workspace_loc:/${ProjName}/src}''

''${workspace_loc:/${ProjName}/librarie/CMSIS/Include}''

''${workspace_loc:/${ProjName}/librarie/STM32F4xx_StdPeriph_Driver/inc}''

''${workspace_loc:/${ProjName}/librarie/STM32F4xx_StdPeriph_Driver/src}''

than i set

C Compiler Preprocessor

USE_STDPERIPH_DRIVER

USE_STM32F4_DISCOVERY

STM32F40XX

i point to “stm32_flash.ld�?: home/user/Bureau/STM324 EVAL/from forum/STM32F4xx_DSP_StdPeriph_Lib_V1.1.0/Project/STM32F4xx_StdPeriph_Templates/TrueSTUDIO/STM324xG_EVAL/stm32_flash.ld

and finally i created a PATH variables and set it’s value to my CodeSourcery’s bin folder

but when i run the project i had  this error

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

frankmeyer9
Associate II
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 II
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 II
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 II
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 II
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 II
Posted on April 11, 2013 at 16:29

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

frankmeyer9
Associate II
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).

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.