How to strip .debug section of a library in code warrior

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

How to strip .debug section of a library in code warrior

ソリューションへジャンプ
1,529件の閲覧回数
whizpb
Contributor I

I have created a code warrior library project to generate a library as output. The library has .debug section which I would like to strip before using this library in any other project.

Is there an option available in the Code warrior IDE to strip the library of its .debug section?

ラベル(1)
0 件の賞賛
1 解決策
1,218件の閲覧回数
stanish
NXP Employee
NXP Employee

Hello Prashant,

You can disable debug information for specific file or entire group by removing a black dot icon (you can on/off debug info by double clicking on the symbol) in the debug column in the Project manager (see attached screenshot below).

This should work in all CodeWarriors based on Classic IDE.

CWClassic_strip_debug_info.png

Hope it helps.

Stan.

元の投稿で解決策を見る

0 件の賞賛
7 返答(返信)
1,219件の閲覧回数
stanish
NXP Employee
NXP Employee

Hello Prashant,

You can disable debug information for specific file or entire group by removing a black dot icon (you can on/off debug info by double clicking on the symbol) in the debug column in the Project manager (see attached screenshot below).

This should work in all CodeWarriors based on Classic IDE.

CWClassic_strip_debug_info.png

Hope it helps.

Stan.

0 件の賞賛
1,218件の閲覧回数
whizpb
Contributor I

Thanks Stanislav. This resolved my problem.

0 件の賞賛
1,218件の閲覧回数
trytohelp
NXP Employee
NXP Employee

Hi.

Do you use CW for MCP55xx/56xx V2.10 or older version ?

Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
1,218件の閲覧回数
whizpb
Contributor I

Hi Pascal,

Yes, I am using MCP55xx/56xx v2.10 SE. Does it have a known limitation? Do any alternatives exist for it?

Prashant

0 件の賞賛
1,218件の閲覧回数
BlackNight
NXP Employee
NXP Employee

You should be able to use the strip program for this:

https://sourceware.org/binutils/docs/binutils/strip.html

You find the program in

C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3\bin

Erich

0 件の賞賛
1,218件の閲覧回数
whizpb
Contributor I

Hi Erich

Thanks for your quick response. The CW installation you referred to is for ARM.

I am using a Power PC installation of the Code Warrior for MSP56xx and do not see a similar strip utility being available in the package.

Prashant

0 件の賞賛
1,218件の閲覧回数
BlackNight
NXP Employee
NXP Employee

I'm not familiar with that tool chain, but I believe it is based on GNU, and therefore it should include that strip utility. But that strip utility is operating on standard .elf/dwarf files, so you should be even be able to use it from an ARM GNU toolchain.

Erich

0 件の賞賛