Code optimization in MCUxpresso

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Code optimization in MCUxpresso

1,666件の閲覧回数
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,655件の閲覧回数
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 件の賞賛
返信

1,630件の閲覧回数
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,625件の閲覧回数
ErichStyger
Specialist I

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

Can you share your .project and .cproject file?

0 件の賞賛
返信

1,601件の閲覧回数
topspin
Contributor II

Hi @ErichStyger 

 

. project

 

 

.cproject

 

 

 

 

 

0 件の賞賛
返信

1,594件の閲覧回数
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 件の賞賛
返信

1,590件の閲覧回数
topspin
Contributor II
No I did not create the SDK project. Can't I use optimization as well?
0 件の賞賛
返信

1,586件の閲覧回数
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,548件の閲覧回数
topspin
Contributor II
Can I install the MCU eclipse plugin in MCUxpresso? is there a reference guide?
0 件の賞賛
返信

1,535件の閲覧回数
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 件の賞賛
返信

1,539件の閲覧回数
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 件の賞賛
返信