Printf in S32DS

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

Printf in S32DS

1,123 次查看
Embedded_novice
Contributor II

hi:

    I want to use the printf function on the console to print some information while debugging on the S32 Design Studio IDE.

    But what do I do when I re-select the library and the following error occurs when I compile?

    Platform:S32 Design Studio for ARM Version 2.2

    Chip:S32K148

    

1.png2.png

0 项奖励
回复
3 回复数

1,100 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @Embedded_novice 

You need to use lib C with Debugger console: 

VaneB_0-1677258462235.png

The printf output is shown in the Semihosting console.

 

B.R.

VaneB

 

0 项奖励
回复

1,077 次查看
Embedded_novice
Contributor II

Snipaste_2023-02-27_09-14-36.png

I have tried.

I am not the one who created this project. I wonder if there is any way to adapt C++ to C if C++ and C do not share certain parts of this library.

Thank you again @VaneB 

0 项奖励
回复

1,062 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @Embedded_novice 

C++ and C have specific differences between them. If you plan to adapt your project, we recommend you investigate these differences first.

0 项奖励
回复