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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
3,558 次查看
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 解答
3,247 次查看
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 回复数
3,248 次查看
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 项奖励
回复
3,247 次查看
whizpb
Contributor I

Thanks Stanislav. This resolved my problem.

0 项奖励
回复
3,247 次查看
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 项奖励
回复
3,247 次查看
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 项奖励
回复
3,247 次查看
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 项奖励
回复
3,247 次查看
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 项奖励
回复
3,247 次查看
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 项奖励
回复