Hi Johana123,
I've tested this using software floating point sum (MPC5604P):
1) created new project using ProjectWizard, enable software floating point.Default libs (Runtime.PPCEABI.VS.UC.a, MSL_C.PPCEABI.bare.VS.UC.a)
2) add fsum() into main.c:
volatile float x,y,f;
float fsum(float a, float b)
{
return a+b;
}
int main(void) {
volatile int i = 0;
x = 3.14;
y = 2.5;
f = fsum(x,y);
}
3) compile and check in the P&E debugger.
It works as expected.
Could you possibly try the same example on your side.
If it works then please post your code here to review.
Stanish