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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,198 Views
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 Kudos
Reply
1 Solution
1,175 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,176 Views
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 Kudos
Reply
1,172 Views
NXP_Leo
Contributor II

Hi Stan,

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

0 Kudos
Reply