MPC8572 Compiler problem.

cancel
Showing results for 
Search instead for 
Did you mean: 

MPC8572 Compiler problem.

355 Views
dmitrshard
Contributor II

Hello, everyone!

I have trouble with MPC8572DS board. I make bareboard application (.elf). I use powerpc-linux-gnu compiler. Trouble is with floating-point instructions. In my bareboard application i use unsigned long long numbers and compiler makes

lfd f0,16(r31)
stfdf0,8(r9)

instructions wich write in floating-point registers but MPC8572DS havent floating-point registers. I know about MSR[SPE] bit.

What compiler flags or compiler i need to use to avoid this error.

Thanks.

Tags (1)
0 Kudos
2 Replies

243 Views
marius_grigoras
NXP Employee
NXP Employee

Hi,

You can make a try also using CW and using the default bare-metal toolchain from our PA compiler (not gcc based).

Regards,

Marius

243 Views
bpe
NXP TechSupport
NXP TechSupport

The following options are used by QorIQ SDK for e500v2 based processors:

-mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double

For more information on available registers refer to E500CORERM, Section 2.2


Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------