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