Code optimization in MCUxpresso

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code optimization in MCUxpresso

1,383 Views
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 Kudos
Reply
10 Replies

1,372 Views
ErichStyger
Specialist I

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 Kudos
Reply

1,347 Views
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 Kudos
Reply

1,342 Views
ErichStyger
Specialist I

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

Can you share your .project and .cproject file?

0 Kudos
Reply

1,318 Views
topspin
Contributor II

Hi @ErichStyger 

 

. project

 

 

.cproject

 

 

 

 

 

0 Kudos
Reply

1,311 Views
ErichStyger
Specialist I

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 Kudos
Reply

1,307 Views
topspin
Contributor II
No I did not create the SDK project. Can't I use optimization as well?
0 Kudos
Reply

1,303 Views
ErichStyger
Specialist I

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,265 Views
topspin
Contributor II
Can I install the MCU eclipse plugin in MCUxpresso? is there a reference guide?
0 Kudos
Reply

1,252 Views
ErichStyger
Specialist I

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 Kudos
Reply

1,256 Views
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 Kudos
Reply