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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,008 Views
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.

Tags (3)
0 Kudos
Reply
3 Replies

962 Views
jiri_kral
NXP Employee
NXP Employee

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

0 Kudos
Reply

965 Views
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 Kudos
Reply

1,000 Views
sochoi
Contributor III

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

0 Kudos
Reply