How to force a .o file to a designated section in CW11.1

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

How to force a .o file to a designated section in CW11.1

ソリューションへジャンプ
1,200件の閲覧回数
NXP_Leo
Contributor II

Before i use the code below in the lcf file, i can force the ".o" file into designated section

/* ACN header contains SW version info and populated by checksum program. */
GROUP BIND (ACN_Boot_Header) : {
.ACN_Boot_Header_data LOAD (ADDR(ACN_Boot_Header)) : {acnblhdr.o}
} > ACN_Boot_Header

but when i switch to CW11.1 it seems always report the warning below, how can i realize the same function i the CW11.1?

linker command file 'acnblhdr.o' is missing from project. S2LS C/C++ Problem

0 件の賞賛
返信
1 解決策
1,177件の閲覧回数
stanish
NXP Employee
NXP Employee

Hello Leo,

The object file naming has changed in CodeWarrior for MCUs v10.x+ (eclipse).

In your case the source file:

acnblhdr.c

is compiled into:

acnblhdr_c.obj

Please try to use this object file name in your linker file instead.

Hope it helps.

Stan

元の投稿で解決策を見る

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

Hello Leo,

The object file naming has changed in CodeWarrior for MCUs v10.x+ (eclipse).

In your case the source file:

acnblhdr.c

is compiled into:

acnblhdr_c.obj

Please try to use this object file name in your linker file instead.

Hope it helps.

Stan

0 件の賞賛
返信
1,174件の閲覧回数
NXP_Leo
Contributor II

Hi Stan,

My problem have been solved according to your guidance, thanks your very much!

0 件の賞賛
返信