when building program based on MPC5744P

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

when building program based on MPC5744P

621件の閲覧回数
billie60
Contributor I

hello! I am using s32ds for power. when I build my project, there were some errors in my project. like Ld error: undefined reference to '__close_console', Ld error: undefined reference to '__read_console', Ld error: undefined reference to '__write_console' and make:***[....] Error 1.   Can you help me? 

 

Thanks 

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

612件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

As the error describes, there is missing definition for the macros you call.

Check if there are any program branches like #if / #ifdef which leads to the definition of the missing macros.

best regards,
Peter

0 件の賞賛
返信

600件の閲覧回数
billie60
Contributor I

Hello, peter. I have never defined macros such as '_XXX_console'. I checked the whole project and couldn't find where '_XXX_console' was. This is the .zip of my project. Can you help me to check the problem? Thank you sooo much!  

best wishes

bille

6b0c74df7498188113bc899d0788796.png

0 件の賞賛
返信

587件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

you need to implement such functions by yourself - typically this functions sends or reads data from UART.. printf and scanf are calling these functions at the end.

 

For reference you can look at this example - 

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/EXAMPLE-S32k144-UART-printf-scanf-unde...

0 件の賞賛
返信