Code optimization in MCUxpresso

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

Code optimization in MCUxpresso

880 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
10 Replies

869 Views
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 Kudos

844 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

839 Views
ErichStyger
Senior Contributor V

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

Can you share your .project and .cproject file?

0 Kudos

815 Views
topspin
Contributor II

Hi @ErichStyger 

 

. project

 

 

.cproject

 

 

 

 

 

0 Kudos

808 Views
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 Kudos

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

800 Views
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.

762 Views
topspin
Contributor II
Can I install the MCU eclipse plugin in MCUxpresso? is there a reference guide?
0 Kudos

749 Views
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 Kudos

753 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