How can I provide project settings (memory configuration) while building a MCUXpresso through Command Line

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

How can I provide project settings (memory configuration) while building a MCUXpresso through Command Line

2,824 次查看
dattathreya_adi
Contributor I

Hi,

To build a MCUXpresso project through command line in windows, I am using the .bat file from https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/MCUXpresso/CmdLineBuild

I am able to build the project.

Now i want to add memory configuration as parameter while building the project.

I MCUXpresso IDE the default setting for MKV56F1M0xxx24 is as below

pastedImage_7.png

I want to change the Program memory setting to as belowpastedImage_6.png

While this is possible in the IDE, I want to provide this setting as a parameter while building the project through command line, which in my case is a batch file. Is it possible to do so??

标签 (1)
0 项奖励
回复
4 回复数

2,721 次查看
converse
Senior Contributor V

It is not possible to do this from the command line. if you want a different memory configuration you have to change your project, or have 2 projects

0 项奖励
回复

2,721 次查看
dattathreya_adi
Contributor I

Thank you for the Reply.

If I create two Projects, when I do a change i source code, i need to replicate the same for other project as well.

So, is there an option that i change the memory configuration of a project without using the MCUXpresso IDE. I mean, what are the files that store the project settings, mainly memory configuration.

By this, i can use a script to trigger two builds. Before triggering the second build, the script shall modify the project setting or configuration file for new memory configuration.

0 项奖励
回复

2,721 次查看
ErichStyger
Specialist I

Hi Adithya Y D,

have a look at the .cproject file: here all the options and settings for the compiler/linker/etc are stored.

2,721 次查看
dattathreya_adi
Contributor I

That helped...

Thanks a lot.

0 项奖励
回复