fp_coldfire.a issue upgrading from V6.3 to V6.4

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

fp_coldfire.a issue upgrading from V6.3 to V6.4

2,138 Views
twoerner
Contributor I
I've been playing with the M52235EVB. I downloaded the code sources to the dBUG ROM monitor for the 52235 eval board:

M5223EVB_DBUG 
dBUG source code for the M5223EVB
dBUG ROM monitor source code files for the ColdFire M5223EVB
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=M52235EVB&fpsp=1&tab=Design_Tools_Tab
Using V6.3 everything was fine. Then I updated to V6.4 and I can't link. I get the error:

Link Error : Undefined : "_fpscr"
Referenced from "_f_mul" in fp_coldfire.a


Interesting enough, if I remove the fp_coldfire.a file from the project (which comes from the V6.4 support files, libraries) and replace it (Add files...) with the fp_coldfire.a file from my V6.3 installation the compile works fine.

Creating a "Hello, world!" project using the project stationary for the M52235 under V6.4 compiles and links fine (using the fp_coldfire.a library from V6.4).

Any ideas?
Labels (1)
0 Kudos
3 Replies

285 Views
CrasyCat
Specialist III
Hello
 
As far as I can tell _fmul is used when you are multiplying 2 single precision floating point variables (float) in your application.
 
I do not have a V6.3 installed on my PC, so I made some tests with a V6.4.
 
If I multiply 2 floats together I get _fmul linked to the application, but I did not get any message about _fpscr missing.
 
Can you try the following:
  - Close the IDE
  - Browse to your project directory
  - Delete the _Data Folder
  - Restart V6.4 IDE
  - Rebuild your project.
 
Is the issue still happening?
 
CrasyCat
0 Kudos

285 Views
twoerner
Contributor I
Hello CrasyCat, thank you for looking into my issue.

I tried the steps you suggested (i.e. removing the {project}_Data folder and rebuilding) but the same error message occurs. And I had created  simple "Hello, world!" program under V6.4 that didn't do much else but multiply two floats and report the result, which compiled and worked fine.

Comparing my "Hello, world!" project and the dBUG project I noticed that the 52235 stationary had added several more *.a libraries to the project than were included before. So I started adding the same libraries and discovered that by adding C_4i_CF_SZ_MSL.a it now builds and links fine. Does this make sense?

Perhaps somewhere between V6.3 and V6.4 the floating point stuff was removed from fp_coldfire.a and is only now found in the MSL libraries?

Maybe you could try grabbing that code from the freescale website and trying it yourself under V6.4 to see if you get the same issues I do?
0 Kudos

285 Views
CrasyCat
Specialist III
Hello
 
Yes you are right. The m5223evb_dbug.mcp project cannot be built with CodeWarrior for Coldfire V6.4.
I do not understand though why the people there did not include the MSL library file in the project.
 
I will report that back. 
 
CrasyCat
0 Kudos