Build profile that changes base address

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Build profile that changes base address

1,431 次查看
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 项奖励
回复
1 回复

1,425 次查看
ErichStyger
Specialist I

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 项奖励
回复