Printf() statement for BCC_S32K144_Monitoring_Diagnostics

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

Printf() statement for BCC_S32K144_Monitoring_Diagnostics

1,675件の閲覧回数
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

ラベル(3)
0 件の賞賛
7 返答(返信)

1,404件の閲覧回数
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 件の賞賛

1,404件の閲覧回数
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 件の賞賛

1,404件の閲覧回数
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 件の賞賛

1,404件の閲覧回数
sushma
Contributor III

Hello Jiri,

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

0 件の賞賛

1,404件の閲覧回数
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

1,404件の閲覧回数
sushma
Contributor III

Hello Jiri,

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

Thank you,

Sushma

0 件の賞賛

1,404件の閲覧回数
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 件の賞賛