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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...