How to build 2 binaries in one shot for different memory configuration in mcuxpresso?

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

How to build 2 binaries in one shot for different memory configuration in mcuxpresso?

1,424件の閲覧回数
subbanna_manjun
Contributor I

Hi,

I have a requirement to build the application to 2 flash locations say 0x10000000 and 0x10032000.

I want to do it in one shot, by using pre and post build scripts. I am using mcuxpresso as IDE. So, if anyone could help on how to configure the scripts to change the program memory configuration during compile time it would be of great help.

Thanks in advance.

タグ(1)
0 件の賞賛
返信
2 返答(返信)

1,343件の閲覧回数
converse
Senior Contributor V

I don't think this is possible:

1. A project can only have one memory configuration. 2 memory configurations = 2 projects

2. Even if you could change memory configs (which you can't), you cannot build 2 targets in 1 build. 1 build = 1 target

Ideas on how you might make this a bit easier.

1. Set up two projects. Use linked resources (described in online Help) so they both use the exact same source.

 Or

2, (if the ONLY difference is the link step memory map), have 3 projects - one builds a library from your source, the other two have the separate memory configurations defined

0 件の賞賛
返信

1,343件の閲覧回数
ErichStyger
Specialist I

I'm doing it the following way:

Linking Bootloader Applications with Eclipse and FreeMarker Scripts | MCU on Eclipse 

I hope this helps,

Erich

0 件の賞賛
返信