Page 1 of 1

Build for different Memory Areas

Posted: Wed Nov 02, 2016 12:54 pm
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 :-)

Re: Build for different Memory Areas

Posted: Mon Nov 14, 2016 11:17 am
by Tabulous
Bump ??

Re: Build for different Memory Areas

Posted: Mon Nov 14, 2016 11:59 am
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

Re: Build for different Memory Areas

Posted: Mon Nov 14, 2016 12:47 pm
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.