Jump to content
Sign in to follow this  
liter

Discovery F4 kit error - undefined reference to `RCC_AHB1PeriphClockCmd'

Recommended Posts

Hello,

I just finished creating an environment for my STM32F4 kit using code sourcery over eclipse using this tutorial. I however get the following error when I compile the LED blink project.

 

main.c:68: undefined reference to `RCC_AHB1PeriphClockCmd'

main.c:77: undefined reference to `GPIO_Init'

main.c:78: undefined reference to `GPIO_Write'

 

I made sure I included all the include files in the "path and symbols" section in eclipse. Am I missing anything?

Thanks for reading.

Edited by bluehash
Changed tag

Share this post


Link to post
Share on other sites

Thanks for your help. I actually redid my full installation using this link. I no longer get the error, but I go get a linker error as below:

 

c:/dev/project/stm32/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-init.o): In function `__libc_init_array':
init.c:(.text+0x38): undefined reference to `_init'
collect2: ld returned 1 exit status
cs-make: *** [Template.elf] Error 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×