S32K Example code for printf() and scanf()

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

S32K Example code for printf() and scanf()

7,109 次查看
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 项奖励
回复
5 回复数

7,062 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport
0 项奖励
回复

6,483 次查看
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 项奖励
回复

7,014 次查看
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 项奖励
回复

7,000 次查看
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 项奖励
回复

6,993 次查看
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 项奖励
回复