/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / CircleOS4.0 : not able to compile project

Username:     
Password:     
             

Forum
  • Index
  •  » circleOS
  •  » CircleOS4.0 : not able to compile project

# 1   2010-10-14 16:53:19 CircleOS4.0 : not able to compile project

pascalfromst
Member
Registered: 2009-01-28
Posts: 16

CircleOS4.0 : not able to compile project

Hello,
I'm lost !
I try to compile a project all regrouped in a single .c file.

I want  to compile this file for PRIMER2 in on project and to do the same in another project for EVO4 primer.

For both, I'm confusing using all the files due to recursive compilation problem :
I create a PRIMER2 project. Adding files :
- FAT.elf and Primer2_Circle.elf files
- DemoKit.c file (my application file)

As explain in comments, I copy in the folder of project  all necessary files to avoid problem of "error STM32 library version conflit detected !"
I add :
stm32f10x_tim.h  then I add as requested stm32f10x.h because conflit (and core_cm3.h and system_stm32f10x.h because looking for)  from CMSIS folder

after this the message appears for reefinition of typedf 's32' 's16' .... until 'ErrorStatus"

I delete this part in stm32f10x.h file

and a new error message : looking for stm32f10x_conf.h needed by stm32f10x_conf.h
with only include stm32f10x_gpio.h and stm32f10x_tim.h activated

"error STM32 library version conflit detected !" with stm32f10x_gpio.h. I add it to my project

asking for the Circle.ld file.

I found one in C:\Program Files\Raisonance\Ride\lib\ARM\CircleOS\Circle_App
and add it to the project.

But !!! FLASH FULL !!!! written.

I try to change the MEMORY parameters to increase the available MEMORY at least to debug ;
but without success.



I don't understand how to manage all .h / .c files from CIRCLE OS to be able to compile successfully for STM32 PRIMER2 neither for EV4 PRIMER (I did the same without success; with same errors).

For your information, I succeeded with CIRCLE OS 3.8.

How can I manage it ?
Can you clarify the use of CIRCLE OS libraries ? The project is only to use timer , gpio and circle os to display

Thanks for your help.

Offline

 

# 2   2010-10-15 15:25:01 CircleOS4.0 : not able to compile project

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

Re: CircleOS4.0 : not able to compile project

Hi Pascal,

If you get the "error STM32 library version conflit detected !", you have to uncheck the Ride7 projetc option "LD Linker/Libraries/Use OLD Precompiled" to NO.

Check also that the last version of "circle_api.h" (4.1) in your project folder or in the "C:\Program Files\Raisonance\Ride\lib\ARM\CircleOS" folder.

What is your Ride7 version ?
I think you have to update it with the version availabel on this site (resources pages).

Yves

Offline

 

# 3   2010-10-18 08:34:37 CircleOS4.0 : not able to compile project

pascalfromst
Member
Registered: 2009-01-28
Posts: 16

Re: CircleOS4.0 : not able to compile project

HEllo,

the version
- RIDE7 = 7.30.10.0159
- RKit-ARM for Ride7 =1.26.10.0130
- Ride7 Patch = 7.30.10.0169

circle_api.h is 4.1 revision.

I created a new project only with application0.c and it compiles without error.
But if I add my file demoKit.c & demoKit.h, needing _tim.h & _gpio.h, there are 2 possibility :

if I write #include "stm32f10x_gpio.h" & #include "stm32f10x_tim.h", even if I force option to "NO" (use old ... to NO),

if I don't write the #include , a lot of errors appears (error : 'TIM4' undeclared ....)

A strange think : when I create a new project, even if I choose Evo_Primer project, the file "stm32f10x_conf.h" is created in the project directory (dated 13/11/2008) with old declarations :

stm32f10x_conf.h : a lot of defines in it
#define _ADC
#define _ADC1
#define _ADC3
#define _BKP

//#define _CAN

//#define _CRC


but if I'm looking for the new stm32f10x_conf.h for 4.1 revision it seems to be different (dated 26/05/2010)
with a lot of include inside #include "stm32f10x_adc.h"
#include "stm32f10x_bkp.h"
/* #include "stm32f10x_can.h" */
/* #include "stm32f10x_crc.h" */
/* #include "stm32f10x_dac.h" */
/* #include "stm32f10x_dbgmcu.h" */
#include "stm32f10x_dma.h"
/* #include "stm32f10x_exti.h" */
#include "stm32f10x_flash.h"
#include "stm32f10x_fsmc.h"
#include "stm32f10x_gpio.h"
#include "stm32f10x_i2c.h"
/* #include "stm32f10x_iwdg.h" */
// #include "stm32f10x_pwr.h" */
#include "stm32f10x_rcc.h"
#include "stm32f10x_rtc.h"
#include "stm32f10x_sdio.h"

could this a problem ?

I can send you my demokit.c file by email ifyou need to try this.

Thanks for your help

Last edited by pascalfromst (2010-10-18 08:47:00)

Offline

 

# 4   2010-10-18 09:25:31 CircleOS4.0 : not able to compile project

pascalfromst
Member
Registered: 2009-01-28
Posts: 16

Re: CircleOS4.0 : not able to compile project

I continue my investigations : the problem of old stm32f10x_conf.h when I compile the project comes from your Rlink Library Pacth :

when we include the new RLink Lib, the folder \CircleOS\Circle_App is updated.
In the previsous revision of CircleOS\Circle_App, the file stm32f10x_conf.h was used. But no in the las revision ...  but the script doesn't erase this file.

So, when we create a new project , this file is added.

Anyway, as I delete totaly the raisonance/ride7/ folder to understand what the matter, can you indicate where is located the FAT_OP4.elf file, looking for by the compiler ( Unable to open file:  C:\Program Files\Raisonance\Ride\Lib\ARM\CircleOS\FAT_OP4.elf)!

Last edited by pascalfromst (2010-10-18 09:28:39)

Offline

 

# 5   2010-10-19 07:05:52 CircleOS4.0 : not able to compile project

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

Re: CircleOS4.0 : not able to compile project

Hi Pascal,

Effectively the file stm32f10x_conf.h is not used in the new applicatin template. You have to add your header files and c files manually.
The missing files are provided by the RKitARM update available on this site http://www.stm32circle.com/resources/do … 100909.zip.
But, you are creating an Open4 project ?
Another question : what do you mean by "Rlink lib"?
Could you please send me your project ?
Thanks,
Yves

Offline

 

# 6   2010-10-19 08:07:14 CircleOS4.0 : not able to compile project

pascalfromst
Member
Registered: 2009-01-28
Posts: 16

Re: CircleOS4.0 : not able to compile project

Thanks for your support, can you send me your email in dorder to send you the project ?

Offline

 

# 7   2010-10-21 08:19:41 CircleOS4.0 : not able to compile project

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

Re: CircleOS4.0 : not able to compile project

Hi,

Some rules to respect, in order to avoid problems :
- check that the project does not use "OLD precompiled ST libraries",
- "stm32f10x.h" must be included before "circle_api.h", in order to avoid double type declarations,
- copy from the ST librairies all necesssary files (sources and header), and add the corresponding folder into the include directory list. Be carrefull with the order of this list, else gcc will find old headers in the $(RideKit)\lib\ARM), and you will have conflicts.

Yves

Offline

 

  • Index
  •  » circleOS
  •  » CircleOS4.0 : not able to compile project

Board footer