Printf() statement for BCC_S32K144_Monitoring_Diagnostics

cancel
Showing results for 
Search instead for 
Did you mean: 

Printf() statement for BCC_S32K144_Monitoring_Diagnostics

475 Views
sushma
Contributor III

Hello,

 I want to print it on the Debugger Console constantly,there are printf statements which prints on UART, unlike on Teraterm or Putty just once (via. UART), but I'm not able to print basic command  [printf("Hello\n");] ; I did made the changes in the settings from ewl_c no I/O to newlib Debugger Console,yet I'm not able to print. Kindly help me in this regard.

Thank you.

pastedImage_4.png

Labels (3)
0 Kudos
7 Replies

204 Views
stanish
NXP Employee
NXP Employee

Hi,

I'd suggest you to check if debug configuration has enabled semihosting:

pastedImage_1.png

Please check the thread below for more details:

S32K and printf() implementation 

Hope it helps.

Stan

0 Kudos

204 Views
sushma
Contributor III

Hello Stanislav,

I tried it, yet I'm not getting the printf statements on console, Kindly tell where I'm going wrong.

Thank you.

pastedImage_1.pngpastedImage_2.png

0 Kudos

204 Views
jiri_kral
NXP Employee
NXP Employee

Hi Sushma, 

in attachment is project with semihosting print - just for reference. You can compare this project/debug properties with yours one. Here is output: 

pastedImage_1.png

0 Kudos

204 Views
sushma
Contributor III

Hello Jiri,

I  found the output picture, couldn't find the project attachment. 

0 Kudos

204 Views
jiri_kral
NXP Employee
NXP Employee

Hi,

This is strange, I can see and download attachment even when I'm not logged in: 

pastedImage_1.png

Jiri

204 Views
sushma
Contributor III

Hello Jiri,

Yeah, got the attachment this time, its up and running fine.

Thank you,

Sushma

0 Kudos

204 Views
sushma
Contributor III

Hello Stanislav,

I have done the following changes and still not able to get the printf results on Console. Kindly tell me where I'm going wrong.

pastedImage_1.png

Thank you,

Sushma Mantagani

0 Kudos