Topic : Generating 2 hex files with a single code.

Forum : Ride IDE

Original Post
Post Information Post
January 25, 2010 - 10:58am
Guest

Is there a simple method to generate multiple hex files from a same application with different linker scripts and #defines.

currently i am able to achieve the required result by maintaining two different projects with same source code but different linker scripts.

regards
MicroP1

Replies
Post Information Post
+1
0
-1
January 25, 2010 - 1:38pm
Raisonance Support Team

Hi MicroP1,

Yes we can!
You can use different configurations for your application:
- Right-click on your application
- Select "Properties"
- Create 2 configurations, for instance "BigROM" and "SmallROM"
- For each configuration, choose the appropriate Copiler/assembler/linker options

There you are. When building your application, just select the configuration you want, and launch a build.

Regards,
Bruno

+1
0
-1
January 27, 2010 - 5:18am
Guest

Thank You Bruno

i did try the configuration option and it did exactly as i wanted.

and just to automate the task even more (now i am being lazy)

can i generate the hex files with two configuration automatically( i build the project and two hex with different configs are generated.)..!

regards
P1

+1
0
-1
January 27, 2010 - 9:46am
Raisonance Support Team

Hi P1,

There is no such facility within Ride7.
You can write a makefile that would make the trick, but it's another game...

Bruno

+1
0
-1
January 27, 2010 - 10:01am
Guest

Thank you Bruno.
:D