Run sdk makefile project example error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Run sdk makefile project example error

1,298件の閲覧回数
lognight
Contributor III

I ran the example of using makefile project in D:\NXP\S32DS_Power_v1.2\S32DS\S32_SDK_MPC5748G_EAR_0.8.0\examples\MPC5748G\demo_apps\hello_world-mkf\GCC-MKF, met an error as following, how can I slove this problem.

I using  S32DS_Power_v1.2.

100.PNG

0 件の賞賛
2 返答(返信)

1,122件の閲覧回数
stanish
NXP Employee
NXP Employee

Hi Steven,

Thanks for this report. 

I suspect there is an issue in the example makefile which does not work well with the latest GCC compiler (S32DS Power v1.2)

Could you possibly try to remove the linker options below from the Makefile (line 124, 127):

-nostartfiles
-nostdlib
<S32DS_Power_v1.2>\S32DS\S32_SDK_MPC5748G_EAR_0.8.0\examples\MPC5748G\demo_apps\hello_world-mkf\GCC-MKF\Makefile

## Linker flags
LDFLAGS_RAM:=-Wl,-Map=$(MAP_RAM)
LDFLAGS_RAM+= -nodefaultlibs -T "$(BASEDIR)\platform\devices\MPC5748G\linker\gcc\MPC5748G_ram.ld" --entry=Reset_Handler -Wl,-gc-sections
LDFLAGS_RAM+=-lgcc -lm -lc
LDFLAGS_FLASH:=-Wl,-Map=$(MAP_FLASH)
LDFLAGS_FLASH+= -nodefaultlibs -T "$(BASEDIR)\platform\devices\MPC5748G\linker\gcc\MPC5748G_flash.ld" --entry=Reset_Handler -Wl,-gc-sections
LDFLAGS_FLASH+=-lgcc -lm -lc

And re-build the project.

Hope it helps.

Stan

0 件の賞賛

1,122件の閲覧回数
lognight
Contributor III

Hi Stanislav,

 Yes. It worked, I can build it correctly by using gcc,very thans.

0 件の賞賛