Code optimization in MCUxpresso

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

Code optimization in MCUxpresso

1,123 次查看
topspin
Contributor II

Hello,

 

I have made a project from scratch in MCUxpresso IDE.

I want to try different optimization level as explained here Compiler Optimization - NXP Community

But I am not able to find how to do it. 

I go to Project--> Properties and then I have this pop up but I cannot find the proper setting tab

topspin_0-1686753307462.png

 

Can you tell me how to do it?

 

 

0 项奖励
回复
10 回复数

1,112 次查看
ErichStyger
Senior Contributor V

Hi @topspin ,

it would be better if you could post a full screenshot instead just of a part of the dialog. You probably miss the 'go left' buttons for the settings.

The settings look like this:

ErichStyger_0-1686760124623.png

As an other way, you could use the Quickstart panel to access the settings:

ErichStyger_1-1686760257922.png

 

Erich

0 项奖励
回复

1,087 次查看
topspin
Contributor II

Hi @ErichStyger 

 

The panel is as I posted.  I am missing several tabs. How can I add the "tool settings" ?

 

here a full screenshot

topspin_0-1687171774210.png

 

0 项奖励
回复

1,082 次查看
ErichStyger
Senior Contributor V

Maybe you have configured it for a different/incompatible tool chain?

Can you share your .project and .cproject file?

0 项奖励
回复

1,058 次查看
topspin
Contributor II

Hi @ErichStyger 

 

. project

 

 

.cproject

 

 

 

 

 

0 项奖励
回复

1,051 次查看
ErichStyger
Senior Contributor V

That does not look like a MCUXpresso IDE project, as it lacks the

		<nature>com.nxp.mcuxpresso.core.datamodels.sdkNature</nature>

in the .project.

Did you really create an SDK project? See attached files for a valid project.

Erich

0 项奖励
回复

1,047 次查看
topspin
Contributor II
No I did not create the SDK project. Can't I use optimization as well?
0 项奖励
回复

1,043 次查看
ErichStyger
Senior Contributor V

The thing is: if you are not creating a project with the correct tool chain, nature and plugins referenced, you won't be able to see the toolchain (optimization, etc) options.

How do you think the IDE will know about the compiler optimizations, if the project is not configured correctly for the compiler/toolchain you want to use?

So: you have to create a proper/correct project if you want to use all this.

if you create just a 'project without any toolchain and no SDK information' you won't be able to use this all.

If you don't want to use the SDK, but just use a 'bare toolchain' project, then I recommend you install and use the GNU MCU Eclipse plugins.

1,005 次查看
topspin
Contributor II
Can I install the MCU eclipse plugin in MCUxpresso? is there a reference guide?
0 项奖励
回复

992 次查看
ErichStyger
Senior Contributor V

Yes, see for example https://eclipse-embed-cdt.github.io/

But why are you not using what the MCUXpresso IDE provides with the SDK?

0 项奖励
回复

996 次查看
frank_m
Senior Contributor III

I don't understand what you are up to.

You can install the MCUXpesso IDE, which comes with the toolchain, plugins and SDK support preinstalled.

Or, you can create a bare-metal project with you own makefile and a command line build.

0 项奖励
回复