Topic : Trouble building new FWLib for STM32. RIDE include fron install path

Forum : Ride IDE

Original Post
Post Information Post
August 6, 2008 - 10:11pm
Guest

Hello,

I'm trying to rebuild the FWlib supplied by ST for the STM32. I've opened the supplied project file but couldn't select the predefined configurations. (known issue.) However, when trying to build my own configuration I failed to make gcc ignore the supplied FWlib in RIDE installation path. I've deselected 'use ST lib' for LD but didn't find a suitable option for gcc. Added some extra '-I.. -I../../library/inc' but they appear after the '-I' directive for the system library. I think a new option for gcc config is needed to avoid default include paths.

--- Mikael R

(Using Ride v. 7.10 for STM Primer)

Replies
Post Information Post
+1
0
-1
August 7, 2008 - 12:26pm
Guest

Hi Mikael

You should be able to change the default include and library directories from "Options->Project Properties->Application Options->directories"
May i ask you if you tried this?

PS the issue with configuration saving has been fixed and will be available on next patch.

Best regards,
Matloub

+1
0
-1
August 7, 2008 - 5:09pm
Guest

Strange, loaded my project to verify my previous findings. It worked flawlessly... Checked the command line output that said '-I ".." -I "..\..\library\inc"' which is as expected. Located 'Project Local Settings->Allication options->Directories->Include directories'. Clicked the '...' button and got a Dialog with include paths '..' and '..\..\library\inc'. Clicked 'OK'.
After this, restarting the build process result in an error. Checking the command line for gcc I see '-I "." -I "C:\Program Files\Raisonance\Ride\Lib\ARM\include"' while the directory entry still says '..;..\..\library\inc'.
Restarting RIDE and loading the project again restore the correct path. I'm trying to build FWlib 2.0.2.

Seems to be something fishy there. Anyway, checked the supplied FWlib with version 2.0.1 and that will suffice for me at the moment, so I'll drop this until the next update of RIDE is out. Might be worth looking into though if you can reproduce it. Tnx for the reply.

--- Mikael R

+1
0
-1
September 10, 2008 - 10:57am
Guest

Hi,

I have Rde7 7.10.0000 and Rkit-ARM (1.10.0000).

I would like to report the same problem as rosbacke .
I was working with ride and everything was ok and suddenly all my include paths stops working.

On the command line I have only seen -I “.”

Then I've backed to the previous version of my program and work without any problems. I think that something is not ok.

I do not know what I have done to cause this, I remeber Ride ask me about generate map file or sth like this, if it helps.

+1
0
-1
September 10, 2008 - 11:28am
Guest

Hi,

I have caused the same error changing optimalization for the whole project.

p.s.
Do you have workaround for this problem?

+1
0
-1
September 11, 2008 - 10:46am
Guest

Hi

If you have the same problem as described previously the workaround should be:
When you change your settings for all project to make "Project->Save Project" before building.

Is this helping you?

Matloub

+1
0
-1
September 12, 2008 - 9:09am
Guest

Yes, it helps.

thx matloub