Printf in S32DS

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

Printf in S32DS

932 Views
Embedded_novice
Contributor I

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 Kudos
Reply
3 Replies

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

886 Views
Embedded_novice
Contributor I

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

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