Build profile that changes base address

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Build profile that changes base address

1,403件の閲覧回数
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,397件の閲覧回数
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 件の賞賛
返信