Build for different Memory Areas

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Build for different Memory Areas

Post by Tabulous »

Is it possible to configure the chibi-studio build environment to build for different memory areas ?

i.e.

DEBUG Build
Flash Start @ 0x8000000 with CORTEX_VTOR_INIT defined as 0x0000

Release Build
Flash Start @ 0x8008400 with CORTEX_VTOR_INIT defined as 0x8400

Trying to automate it so less chance of errors i.e forgettng to to manually change them :-)
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: Build for different Memory Areas

Post by Tabulous »

Bump ??
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Build for different Memory Areas

Post by Giovanni »

Sorry, forgot about this.

You could create another .ld file for the debug configuration and two makefiles.

I think it should be possible to create two build configurations in Eclipse using the two different makefiles, I never did this however.

Giovanni
Tabulous
Posts: 518
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 18 times

Re: Build for different Memory Areas

Post by Tabulous »

This is what i do at the moment and just comment out the .ld that im not using.

But if you could set a symbol in the C/C++ General settings and this is then checked in the makefile to decide which .ld file to use this would be ok.
Post Reply