I want to use printf() in the ghs compiler environment on an S32K312 board.

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

I want to use printf() in the ghs compiler environment on an S32K312 board.

1,024 次查看
sochoi
Contributor III

For gcc, there was a guide using newlib.

For ghs (Green Hills Software), there is no guide, so I am having a

I am having a lot of trouble debugging.

Can you please provide a guide to create a ghs application and use printf statements?

Either way is good.

标记 (3)
0 项奖励
回复
3 回复数

978 次查看
jiri_kral
NXP Employee
NXP Employee

as a workaround you can configure UART and send sprintf() output to serial terminal. 

0 项奖励
回复

981 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

unfortunately I'm not familiar with GHS Multi IDE. Please ping GHS support if they have STD C library with semihosting output (similar like newlib with I/O support). 

0 项奖励
回复

1,016 次查看
sochoi
Contributor III

You are using the S32K312EVB-Q172 and you are using the GCC uses RTT for output.

0 项奖励
回复