Topic : Problem using Library v3.12......

Forum : ARM

Original Post
Post Information Post
June 15, 2010 - 2:33am
Guest

Hi, I'm having a problem getting code to compile using the new library.
As far as I can tell I've included all the necessary header and source files in my project folder, and turned off the pre-comiled library.

All of the source files compile ok except main(), which built ok when using the old libraries.

Here is the output of the compiler:

Building C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c
Running: GCC
"C:\Program Files\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -MD -D_STM32F105VCT6_ -D_STM3x_ -D_STM32x_ -mthumb -mcpu=cortex-m3 "C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c" -o "C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.o" -I "." -I "C:\Program Files\Raisonance\Ride\Lib\ARM\include" -c -fsigned-char -g -ffunction-sections -mlittle-endian
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GPIO_InitStructure'
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c: In function 'main':
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:26: error: 'RCC_APB2Periph_GPIOE' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:26: error: (Each undeclared identifier is reported only once
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:26: error: for each function it appears in.)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:28: error: 'GPIO_InitStructure' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:28: error: 'GPIO_Pin_All' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:29: error: 'GPIO_Mode_Out_PP' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:30: error: 'GPIO_Speed_50MHz' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:38: error: 'GPIO_Pin_7' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:38: error: 'Bit_SET' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:40: error: 'Bit_RESET' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c: In function 'RCC_Configuration':
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:58: error: 'RCC_HSE_ON' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:61: error: 'RCC_FLAG_HSERDY' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:65: error: 'FLASH_PrefetchBuffer_Enable' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:68: error: 'FLASH_Latency_2' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:71: error: 'RCC_SYSCLK_Div1' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:74: error: 'RCC_HCLK_Div1' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:80: error: 'RCC_SYSCLKSource_HSE' undeclared (first use in this function)
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c: In function 'NVIC_Configuration':
C:\Documents and Settings\All\Desktop\STM32_Learning\STM32F105_NewLibs\main.c:101: error: 'NVIC_VectTab_FLASH' undeclared (first use in this function)

Build failed

I've tried over and over but I'm clueless at this stage! (New to this ARM thing)

Any help would be hugely appreciated

Replies
Post Information Post
+1
0
-1
June 15, 2010 - 11:53pm
Guest

Ok this went away, I just had to add the new library headers and source to my project folder. Then drag the source files into my project and compile each of them. (Right Click, Build)

I think the problem was that I didn't build the source files in the ide before.