Build profile that changes base address

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build profile that changes base address

695 Views
mspenard603
Contributor IV

How can I setup a build profile that changes the base address as seen below? As I need two profiles. One for the default 0x60000000 and another for a custom base address.

Untitled.png

0 Kudos
1 Reply

689 Views
ErichStyger
Senior Contributor V

Because the memory map is not linked to the CDT configuration, you cannot directly do this.

What you could do is create two build configuration with hooks to the FreeMarker script: I'm using this to change the application base address for bootloaders, and documented it in https://mcuoneclipse.com/2019/10/06/linking-bootloader-applications-with-eclipse-and-freemarker-scri... .

You should be able to the same approach, but you will need to dig into FreeMarker scrips to some extend.

Another solution would be to have two projects which share all the source code.

I hope this helps,

Erich

0 Kudos