/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Renaisance Ride 7 - ARM_CM3 compile error - help !

Username:     
Password:     
             

Forum

# 1   2010-08-13 14:36:45 Renaisance Ride 7 - ARM_CM3 compile error - help !

anotherbrick
New member
Registered: 2010-08-13
Posts: 3

Renaisance Ride 7 - ARM_CM3 compile error - help !

I installed Renaisance Ride 7 IDE

I try to compile a program for STM32F103 ARM_Cortex_M3

I try to compile IO toggle example in the STM32F10x_StdPeriph_Lib_V3.3.0
------------------------------
E:\STM32\STM32F10x_StdPeriph_Lib_V3.3.0\Utilities\STM32_EVAL\/stm3210e_eval/stm3210e_eval.h:301: error: expected declaration specifiers or '...' before 'USART_InitTypeDef'
In file included from E:\STM32\STM32F10x_StdPeriph_Lib_V3.3.0\Utilities\STM32_EVAL\stm32_eval.c:48:
E:\STM32\STM32F10x_StdPeriph_Lib_V3.3.0\Utilities\STM32_EVAL\/stm3210e_eval/stm3210e_eval.c:335: error: conflicting types for 'STM_EVAL_COMInit'
E:\STM32\STM32F10x_StdPeriph_Lib_V3.3.0\Utilities\STM32_EVAL\/stm3210e_eval/stm3210e_eval.h:301: error: previous declaration of 'STM_EVAL_COMInit' was here

-------------------
just this error remained

I included usart header file in stm3210e_eval.h
USART_InitTypedef is declared in #include "stm32f10x_usart.h" 
but still compiler error

can somebody help  ?

Offline

 

# 2   2010-08-16 06:26:30 Renaisance Ride 7 - ARM_CM3 compile error - help !

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: Renaisance Ride 7 - ARM_CM3 compile error - help !

Hi,

Did you read the readme.txt provided with the project. It explains the different steps to make the program run. Normally, it is not necessary to add the include files you said, it is done by the "stm32f10x_conf.h".
Did you modify the "stm32f10x.h" file to select the device you are working on, and the "stm32_eval.h" file to select the evaluation board you will use ?

Yves

Offline

 

# 3   2010-08-16 20:32:44 Renaisance Ride 7 - ARM_CM3 compile error - help !

anotherbrick
New member
Registered: 2010-08-13
Posts: 3

Re: Renaisance Ride 7 - ARM_CM3 compile error - help !

hello thank you ,

in stm32f10x.h
---------------------------
   #define STM32F10X_HD      /*!< STM32F10X_HD: STM32 High density devices */
-----------------------------

in stm32_eval.h
--------------------------------
#define USE_STM32100B_EVAL
---------------------------------

I dont understand what it means ?
---------------------------------------
expected ??declaration specifiers?? or '...' before 'USART_InitTypeDef'
-----------------------------------------

Offline

 

# 4   2010-08-17 06:40:44 Renaisance Ride 7 - ARM_CM3 compile error - help !

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: Renaisance Ride 7 - ARM_CM3 compile error - help !

It simply declares the type of µC (HD = High Denisty = Flash size >= 256KB), and that you will use the ST evaluation board STM32100B.
These macros are used as precompiler options.
You don't have to add any include files, the header "stm32f10x_conf.h" provided with the example does it for you. Check that it is present and well configured (line #include "stm32f10x_usart.h" not commented).

Offline

 

# 5   2010-08-20 18:52:28 Renaisance Ride 7 - ARM_CM3 compile error - help !

anotherbrick
New member
Registered: 2010-08-13
Posts: 3

Re: Renaisance Ride 7 - ARM_CM3 compile error - help !

I wonder , is there a single working example in STM32F10x_StdPeriph_Lib_V3.3.0 ?

for example I create a new aplication
I read readme.txt of ADC_TIMTrigger_AutoInjection example

it says : add
- ADC/TIMTrigger_AutoInjection/stm32f10x_conf.h     Library Configuration file
  - ADC/TIMTrigger_AutoInjection/stm32f10x_it.c       Interrupt handlers
  - ADC/TIMTrigger_AutoInjection/stm32f10x_it.h       Interrupt handlers header file
  - ADC/TIMTrigger_AutoInjection/system_stm32f10x.c   STM32F10x system source file 
  - ADC/TIMTrigger_AutoInjection/main.c

I added .

it says add - Add the required Library files :
  - stm32f10x_adc.c
  - stm32f10x_dma.c
  - stm32f10x_gpio.c
  - stm32f10x_tim.c
  - stm32f10x_rcc.c
  - misc.c

I added . I build and it gives following errors


C:\superonline\arm compiler\STM32F10x_StdPeriph_Lib_V3.3.0\Project\STM32F10x_StdPeriph_Examples\ADC\TIMTrigger_AutoInjection\stm32f10x_it.c:163: error: 'GPIO_Pin_6' undeclared (first use in this function) 
C:\superonline\arm compiler\STM32F10x_StdPeriph_Lib_V3.3.0\Project\STM32F10x_StdPeriph_Examples\ADC\TIMTrigger_AutoInjection\stm32f10x_it.c:163: error: (Each undeclared identifier is reported only once 
C:\superonline\arm compiler\STM32F10x_StdPeriph_Lib_V3.3.0\Project\STM32F10x_StdPeriph_Examples\ADC\TIMTrigger_AutoInjection\stm32f10x_it.c:163: error: for each function it appears in.) 
C:\superonline\arm compiler\STM32F10x_StdPeriph_Lib_V3.3.0\Project\STM32F10x_StdPeriph_Examples\ADC\TIMTrigger_AutoInjection\stm32f10x_it.c:163: error: 'Bit_SET' undeclared (first use in this function) 
C:\superonline\arm compiler\STM32F10x_StdPeriph_Lib_V3.3.0\Project\STM32F10x_StdPeriph_Examples\ADC\TIMTrigger_AutoInjection\stm32f10x_it.c:165: error: 'ADC_InjectedChannel_1' undeclared (first use in this function) 
C:\superonline\arm compiler\STM32F10x_StdPeriph_Lib_V3.3.0\Project\STM32F10x_StdPeriph_Examples\ADC\TIMTrigger_AutoInjection\stm32f10x_it.c:167: error: 'ADC_IT_JEOC' undeclared (first use in this function) 
C:\superonline\arm compiler\STM32F10x_StdPeriph_Lib_V3.3.0\Project\STM32F10x_StdPeriph_Examples\ADC\TIMTrigger_AutoInjection\stm32f10x_it.c:169: error: 'Bit_RESET' undeclared (first use in this function) 
----------------------------------------
I have chosen the familiy HD and eval board - why does it give this errors ?
I havent changed a single line in source files
I tried other examples too like GPIO toggle still numerous erros

I am getting slowly crazy - please tell me is there a working example ?

Offline

 

Board footer