MPC8572 Compiler problem.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC8572 Compiler problem.

576 次查看
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.

标记 (1)
0 项奖励
2 回复数

464 次查看
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

464 次查看
bpe
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------