/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Username:     
Password:     
             

Forum
  • Index
  •  » Comments
  •  » Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

# 1   2013-01-10 05:22:34 Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

softy
Member
Registered: 2012-12-03
Posts: 68

Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

HI ,

I am trying to build the FastChart1v8 for the EvoPrimer.I have extracted the project and it has two project files :
1- ChartProject and
2 - ChartProject_primer2

I assume ChartProject_primer2 is the one which has to be build for evo primer.I know the Processor arch has to be changed to VG  instead of VE (currently configured) .I know there is not much diff between teh two G and E but the project is niot building on the first place.
I am getting the following error on loading the project ChartProject_primer2.


Unable to open file: C:\tmp\apps\EVO_STM32\FastChart1v8\os\Primer2_Circle.elf


Which I have loaded from the Ride directory .Now on building I am gettign the error :

(A) .\include/circle_api.h:30:27: fatal error: stm32f10x_lib.h: No such file or directory


Before delving deep into it may I know the correct setting for building the project.I cant see the STM32 Lib being referred in the project though i see a major portion of it being used in the AdvancedApp.c (eg in Calibrate_Adc , keywords like DMA1_Channel1 coming from stm32l1xx_dma.c/h) but no reference of the Lib in the project.

Kindly suggest  how to remove this error - (A) and the subsequent error)


Rgds,
Softy

Last edited by softy (2013-01-10 05:23:07)


" Pain is temporary, Quitting Lasts for ever"

Offline

 

# 2   2013-01-11 08:53:40 Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Etienne.C
Administrator
Registered: 2012-12-04
Posts: 71

Re: Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Hi,
We are working on it.
Regards,
Etienne

Offline

 

# 3   2013-01-11 09:23:25 Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

softy
Member
Registered: 2012-12-03
Posts: 68

Re: Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Hi ,
If you could tell me something about teh discrepancy I may also look into i t.
Rgds,
Softy


" Pain is temporary, Quitting Lasts for ever"

Offline

 

# 4   2013-01-15 09:21:27 Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Etienne.C
Administrator
Registered: 2012-12-04
Posts: 71

Re: Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Hi,
You can find the new FastChart1.9 as the project of the week. It has been done for Evoprimer but can be easily used for Primer 2 (just reset  LCD_SetOffset(OFFSET_OFF) that you can find in the Application_Ini).
The problem was that the 1.8 version was using an old ST library and we needed to change the startup and script options.

Regards,

Etienne

Offline

 

# 5   2013-01-15 11:24:41 Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

softy
Member
Registered: 2012-12-03
Posts: 68

Re: Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

The projects works fine , I am able to see the graph .Only thing is that the on clicking add_to_Circle.bat it searches for the objrelease though only objdebug is present .I ran it by renaming objdebug to objrelease .
But I am not able to load the project and build it.Is it build-able as well.What are the associated files associated with it , is it really taking data from MEMS.
Rgds,
softy


" Pain is temporary, Quitting Lasts for ever"

Offline

 

# 6   2013-01-23 17:56:10 Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

softy
Member
Registered: 2012-12-03
Posts: 68

Re: Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

What is the License for this Project, can I use it in my project with GPL/LGPL?


" Pain is temporary, Quitting Lasts for ever"

Offline

 

# 7   2013-01-24 14:38:08 Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Etienne.C
Administrator
Registered: 2012-12-04
Posts: 71

Re: Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Is completely free LGPL then you can use in your project.
regards,
etienne

Offline

 

# 8   2013-06-12 13:01:08 Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

softy
Member
Registered: 2012-12-03
Posts: 68

Re: Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

HI Etienne,
I am in need of your help since you have created this project and I am trying to use this in my project where the data has to be fetched from some other accelerometer and not the internal Accelrepmeter (that is LIS3LV02DL).

I have used lsm303dlhc accelerometer from ST and able to get the 12 bit raw values (as per datasheet) from its 2 8 bits LSB and MSB registers multiplied by the sensticity at +- 2G full scale (which is equal to 1).

Then there is this piece of code in the ChartHelper.c

ylog[0][log] = y[0] = ((m->OutX_F16 / (32*4*fullScale))) + 120;  //intent; scale mems data to full height chart pixels so ZONE_HEIGHT REPRESENTS full scale of -1Newton to +1Newton
   ylog[1][log] = y[1] = ((m->OutY_F16 / (32*4*fullScale)))

I wanted to know why (32*4*fullScale))) + 120 is being used,
Also If I am using some other accelerometer what all changes I have to implement in the ChartHelper.c and Chart.c.(like fullscale, senstivity ,any other factor).
My chart is nto as clean as what is obtained by LIS3LV02DL values.Rather it is too dirty !
Waiting for your helpful advice .Thanks in advance !
Rgds,
Softy

Last edited by softy (2013-06-12 13:05:44)


" Pain is temporary, Quitting Lasts for ever"

Offline

 

# 9   2013-06-13 06:30:58 Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

softy
Member
Registered: 2012-12-03
Posts: 68

Re: Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Any input on this.The fast chart has been used inside the application_handler.How can I use this in my application which has already one application handler.
Kindly suggest soon on this and the post above !
Kind Rgds,
softy


" Pain is temporary, Quitting Lasts for ever"

Offline

 

# 10   2013-06-26 11:38:46 Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Etienne.C
Administrator
Registered: 2012-12-04
Posts: 71

Re: Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Dear Softy,

This project is adapted for Open4, previously it was a primer 2 project and his screen was smaller.
The graph followed the entire length of the screen but when the pointer should return to the beginning (x=0) it did not do. We decided to force the return adding +120

Concerning the lsm303dlhc accelerometer, I suggest you to read the data sheet to see if there is some changes to add to your configuration.

Best regards,

Offline

 

# 11   2013-06-26 13:08:06 Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

softy
Member
Registered: 2012-12-03
Posts: 68

Re: Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Hi Etienne,
I am able to integrate the fastchart with lsm303dlhc .What I did was i include the Application_init and Application_handler code in my Application_init and Application_handler code.
To adapt for lsm303dlhc I have modified the above line as follows :

(32*4*fullScale *1/magnify ) where I have added the menu code for magnify .
I can get the graphs easily and they look graceful as well with each tilt in X/Y and Z directions.
I am trying to smooth the application as after the chart is displayed control goes to the Circle OS and on pressing the push button I get the Default Application installed on the Evoprimer rather than my own application's options.
So not sure if this is the correct way to integrate this.
Thnks and Rgds,
Softy

Last edited by softy (2013-06-26 13:10:27)


" Pain is temporary, Quitting Lasts for ever"

Offline

 

  • Index
  •  » Comments
  •  » Error Compiling Project FastChart1v8 for EvoPrimer(STM 32 G)

Board footer