How switch from debug to release build?

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

How switch from debug to release build?

ソリューションへジャンプ
5,117件の閲覧回数
rémiraynaud
Contributor III

Hello everyone,

 

I'm with KDS 2.0 and SDK 1.1.0 and PEx.

I don't have release build initially configured, I have to create a new configuration with Release Default Configuration.

When I build my project with this new config it's appeared :

DescriptionResourcePathLocationType
Program "" not found in PATHserial_test_project_k22f_ksdk1.1.0C/C++ Problem

 

Do I have to install release build?

 

Regards,

Rémi

ラベル(1)
0 件の賞賛
返信
1 解決策
3,434件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Remi,

Let's see Debug and Release in the Desktop case:

In the Desktop World, ‘Debug’ and ‘Release’ builds have following typical meaning:

  1. Debug builds have debugging and symbolic information included. The compiler is not optimizing to make debugging ‘easier’.
  2. Release builds have the debugging and symbolic information (Dwarf in ELF/Dwarf files) stripped off. Optimizations are enabled for best performance or code density.

By default, debug and release mode is the same in CW10. in a MQX project, the difference between debug mode and release mode is optimization level setting.

In debug mode: optimization level is 1.

In release mode: optimization level is 4.

You can also refer Erich blog for this topic

http://mcuoneclipse.com/2012/06/01/debug-vs-release/

can this help?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
7 返答(返信)
3,434件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

Do you want to flash your project to chip ?

If yes , in KDS, after you build. directly  click here :pastedImage_0.png  .

If not,   please tell me what about your "configuration with Release Default Configuration."

BR

Alice

0 件の賞賛
返信
3,435件の閲覧回数
rémiraynaud
Contributor III

Hello Alice,

No I want to build my project with release configuration (optimization)

error.bmp

But I don't have the choice : just debug...

Best regards

Rémi

0 件の賞賛
返信
3,435件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Remi,

Let's see Debug and Release in the Desktop case:

In the Desktop World, ‘Debug’ and ‘Release’ builds have following typical meaning:

  1. Debug builds have debugging and symbolic information included. The compiler is not optimizing to make debugging ‘easier’.
  2. Release builds have the debugging and symbolic information (Dwarf in ELF/Dwarf files) stripped off. Optimizations are enabled for best performance or code density.

By default, debug and release mode is the same in CW10. in a MQX project, the difference between debug mode and release mode is optimization level setting.

In debug mode: optimization level is 1.

In release mode: optimization level is 4.

You can also refer Erich blog for this topic

http://mcuoneclipse.com/2012/06/01/debug-vs-release/

can this help?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
3,435件の閲覧回数
patricio
Contributor IV

Hello ZhangJennie, 

I have the same inquiere that Remi had. 

I am working with a TWR-K64F120M and Kinetis KDS V3.2.0 with Processor Expert and not SDK. I see that KDS has not the option to build in Release, or at least I am not able to find it. Does it have this option?

In my project, I need to toggle a GPIO pin as fast as possible, and I would like to build in Release with highest optimization.

Thank you in advance. 

Best regards. 

0 件の賞賛
返信
3,435件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Aitor,

Normally when we create a new project with KDS wizard, we don't see "release" and "debug" option. these options exist in some demo code, for example, MQX demo.

If you need it, you need configure it by yourself.

Step 1. Create a new build configuration. Right click on the project name, “Build Configurations”, “Manage…”, “New” to create a new Build Configuration.

pastedImage_1.png

step2, if "Debug" is already there, create new for "Release"

pastedImage_2.png

step 3. configure each of the configurations in properties.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

3,435件の閲覧回数
patricio
Contributor IV

Thank you so much. 

0 件の賞賛
返信
3,435件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

You are welcome!

Best Regards,

Jennie.

0 件の賞賛
返信