Floating point values not working on MPC5554

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

Floating point values not working on MPC5554

1,854 Views
tkm_moog
Contributor I
Hi,
I am using Code warrior version..... CodeWarrior for MPC55xx V2.2
Target board : MPC5554EVB (PowerPC), (i dont know whether float hard is supported on this board or not?)
 
I have created a project with these libraries and support files. Also i am using fp hard for this but its not reading the float values it hangs there in runtime...
 
 "${CWFOLDER}/PowerPC_EABI_Support/Runtime/Lib/Runtime.PPCEABI.S.UC.a "; 
 "${CWFOLDER}/PowerPC_EABI_Support/MSL/MSL_C/PPC_EABI/Lib/MSL_C.PPCEABI.bare.S.UC.a ";
 
 
can anybody tell me anything needs to set for fp hard,
 
 
I had tried with these libraries also i am building the project from the command line options
"${CWFOLDER}/PowerPC_EABI_Support/Runtime/Lib/Runtime.PPCEABI.E.UC.a "; 
"${CWFOLDER}/PowerPC_EABI_Support/MSL/MSL_C/PPC_EABI/Lib/MSL_C.PPCEABI.bare.E.UC.a ";
 
If i use fp soft it gives errors: 
 
thanks in advance
Taranath


Message Edited by 05-Oct-2008 on 2009-02-16 07:29 AM

Message Edited by 05-Oct-2008 on 2009-02-16 08:42 AM

Message Edited by 05-Oct-2008 on 2009-02-16 09:57 AM
Labels (1)
0 Kudos
1 Reply

315 Views
CrasyCat
Specialist III
Hello
 
According to the "MPC5553/5554 Microcontroller Reference Manual", floating point operation are performed
using SPE on MPC5554.
 
So Inside of EPPC Processor you need to set Floating point format to SPFP and to link with the appropriate
library.
 
I would recommend you to create a new project using the project wizard and specify you want to use "SPE-EFPU" as floating point format That should set up your project appropriately.
 
I did check with V2.3 installation. The wizard only allow you to select a valid floating point format (None, Software or SPE-EFPU).
So in any case I would highly recommend using the wizard to create the project.
 
CrasyCat
0 Kudos