Unable to invoke FORCEFILES directive in CodeWarrior 6.3 for M5485EVB

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

Unable to invoke FORCEFILES directive in CodeWarrior 6.3 for M5485EVB

4,511 Views
Sailesh
Contributor I
Hello ,

I'm using CodeWarrior V 6.3 and Coldfire  M5485EVB.

I'm developing a small application which consists of a boot loader and a library (lib1.c,lib2.c). The boot loader will eventually  load another application which invokes functions in my library.

Since the functions in my library are not invoked by my boot loader, linker does not include lib1.c and lib2.c in my final buillt i.e elf.s19 (dead stripping).I used the linker directive FORCEFILES { lib1.o lib2.o} ,at the end of my lcf file but it didn't work.

Do i have to use any other directives?

After every make command i check the elf [.xmap file] to see what all files are included in my final built

Sailesh





Labels (1)
0 Kudos
Reply
7 Replies

1,404 Views
CrasyCat
Specialist III
Hello
 
Are you building from the IDE or are you using  command line tools?
 
CrasyCat
0 Kudos
Reply

1,404 Views
Sailesh
Contributor I
I'm using the IDE
0 Kudos
Reply

1,404 Views
CrasyCat
Specialist III
Hello
 
Can you add the following pragma at the beginning of the file file1.c and file.c:
 
#pragma force_active on
 
That should do it
CrasyCat
0 Kudos
Reply

1,404 Views
Sailesh
Contributor I

No it's still not working for me..
I have attached my project folder,there are couple of Files like queue.c and tasks.c which are still not included in my final elf.

 

test1.zip

Message Edited by t.dowe on 2009-09-04 11:07 AM
0 Kudos
Reply

1,404 Views
CrasyCat
Specialist III
Hello
 
I do not have V6.3 installed on my system, so I did some quick tests with V6.4
 
I am currently unable to link the application.
I get message that pvPortMalloc, ulPortSetIPL, and so on are undefined.
 
I assume I am missing some library or source files... 
 
CrasyCat
0 Kudos
Reply

1,404 Views
Sailesh
Contributor I
I tried using #pragma export on and it worked.

There is one small doubt, i tried to run my project in CodeWarrior V7.1 and it's giving me a compile time error
"undefined symbol vuint32", whereas the  project runs perfectly fine in CodeWarrior 5.7 version.

Can u explain this erratic behavior

0 Kudos
Reply

1,404 Views
CrasyCat
Specialist III
Hello
 
I would recommend you to submit a service request for that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.
 
I assume the type vuint32 was defined somewhere in your V6.3 installation and not in V7.1.
Anyway it is better to let the support team get a look at that.
 
CrasyCat
 
0 Kudos
Reply