S32K Example code for printf() and scanf()

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

S32K Example code for printf() and scanf()

1,027 Views
emb02
Contributor IV

Hi,

I'm using S32K144 and want to use printf/scanf functions for testing purposes. I want to print some data on UART terminal (Teraterm). can you please provide me an example code for printf() & scanf() without using the EWL library.

Please guide me with this.

 

I'm using,

S32DS v3.5

Toolchain - NXP GCC 10.2 for Arm 32-bit bare metal

0 Kudos
Reply
5 Replies

980 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

401 Views
emb02
Contributor IV

Hello @davidtosenovjan 

I've referred your code for UART testing but it contains some errors. The sample code is incomplete. Some files are missing.
Kindly provide a working code.

Screenshot (192).png

0 Kudos
Reply

932 Views
emb02
Contributor IV

Hello


I've previously stated that I would prefer an example of code that doesn't use the EWL library, but provided example project uses EWL library.

For testing purposes, I wish to use the printf and scanf functions. I want to print certain data on UART (Teraterm). My internal clock (SIRC) has a frequency of 8 MHz.

Would you kindly give me an example of printf() and scanf() code for S32K144 and S32K148 that doesn't use EWL library?

 


Could you please help me with this?

 


I'm utilizing it.

S32DS version 3.5

NXP GCC 10.2 toolchain for Arm 32-bit bare metal

0 Kudos
Reply

922 Views
emb02
Contributor IV

Hello


I've previously stated that I would prefer an example of code that doesn't use the EWL library, but provided example project uses EWL library and when i am trying to run code in S32DS i found errors & warnings.

For testing purposes, I wish to use the printf and scanf functions. I want to print certain data on UART (Teraterm). My internal clock (SIRC) has a frequency of 8 MHz.

Would you kindly give me an example of printf() and scanf() code for S32K144 and S32K148 that doesn't use EWL library?

 


Could you please help me with this?

 


I'm utilizing it.

S32DS version 3.5

NXP GCC 10.2 toolchain for Arm 32-bit bare metal

0 Kudos
Reply

915 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

A colleague of mine have been answering this in the following thread a the the very bottom:

https://community.nxp.com/t5/S32K/Not-able-to-use-printf-scanf-functionality-in-S32DS/m-p/1875490/hi...

We don't have example code.

0 Kudos
Reply