GCC Error with MPC574xP MBDT

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

GCC Error with MPC574xP MBDT

1,561 次查看
prorubber
Contributor II

hollow

When gernerate code,error message,with example flexcan_mpc5744.slx

"D:\My documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\code\tools\Cross_Tools\powerpc-eabivle-4_9\bin\powerpc-eabivle-gcc" -mcpu=e200z4 -specs=ewl_c9x.specs --sysroot="D:\My documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\code\tools\S32DS\e200_ewl2\lib" -Xlinker --gc-sections -mhard-float -DTURN_ON_CPU0 core0_intc_sw_handlers.o interrupt_vectors.o startup_MPC5744P.o clock_MPC57xx.o edma_driver.o edma_hw_access.o edma_irq.o fcan0_mpc574x_rx_isr.o flexcan_driver.o flexcan_hw_access.o flexcan_irq.o flexcan_mpc574x.o flexcan_mpc574x_data.o interrupt_manager_MPC57xx.o mbd_main.o mbdt_clock.o mpc_clock_init.o mpc_clock_man_calypso.o mpc_clock_man_panther.o osif_baremetal.o pins_siul2_driver.o pit_driver.o pit_hw_access.o power_manager.o power_manager_MPC57xx.o power_mc_me_hw_access.o siul2_hw_access.o startup.o system_MPC5744P.o libc99.a -o flexcan_mpc574x.elf MPC574xP_AMMCLIB.a libc99.a -T MPC574x.ld -Wl,-Map,"flexcan_mpc574x.map" -e _start
d:/my documents/matlab/add-ons/toolboxes/nxp_mbdtoolbox_mpc57xx/code/tools/cross_tools/powerpc-eabivle-4_9/bin/../lib/gcc/powerpc-eabivle/4.9.4/../../../../powerpc-eabivle/bin/real-ld.exe: cannot find -lc99
d:/my documents/matlab/add-ons/toolboxes/nxp_mbdtoolbox_mpc57xx/code/tools/cross_tools/powerpc-eabivle-4_9/bin/../lib/gcc/powerpc-eabivle/4.9.4/../../../../powerpc-eabivle/bin/real-ld.exe: cannot find -lm
d:/my documents/matlab/add-ons/toolboxes/nxp_mbdtoolbox_mpc57xx/code/tools/cross_tools/powerpc-eabivle-4_9/bin/../lib/gcc/powerpc-eabivle/4.9.4/../../../../powerpc-eabivle/bin/real-ld.exe: cannot find -lrt
collect2.exe: error: ld returned 1 exit status
gmake: *** [flexcan_mpc574x.elf] Error 1

In this para  "-sysroot="D:\My documents\MATLAB\Add-ons\Toolboxes\NXP_MBDToolbox_MPC57xx\code\tools\S32DS\e200_ewl2\lib" ,there are libm.a libc99 librt.a files 

how to do? 怎么解决?

in th *.tmf ,I found the "LIBS" is NULL , if i add the *.a files , other error message:

gmake: *** No rule to make target `D:\My', needed by `flexcan_mpc574x.elf'.  Stop.

want to know .

 

 

2 回复数

1,408 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello  陈宏 陈,

What version of MBDT you are using? From the logs you provided it looks like you are using the 3.0.0 Please install the 3.1.0 and I hope your issue will be gone.

Marius

0 项奖励
回复

1,408 次查看
prorubber
Contributor II

I repaired the "*.tmf" file,some bug in it.