S32K and printf() implementation

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

S32K and printf() implementation

跳至解决方案
4,127 次查看
markusmayer2017
Contributor I

Hi!

I'm currently starting with the S32K microcontroller.

Is there a printf() implementation/example available?

I'm using also the SDK which was delivered together

with the DS. There are two different drivers for

UART available:

  • lpuart
  • flexio_uart

What is the difference between the drivers? For what

purpose they should be used?

1 解答
3,593 次查看
stanish
NXP Employee
NXP Employee

Hi Marcus,

here is a SDK example that uses LPUART + printf():

Example S32K_printf_implementation - S32DS 

In case you are interested in printf() over the jtag (semihosting) please check this thread:

printf() through OpenSDA 

LPUART is common UART/LIN module whereas FlexIO module is highly configurable peripheral module which you can configure to behave like UART, I2C, I2S,1-Wire....

I'd recommend you to start with LPUART driver since it is easier to understand how it works.

Hope it helps.

Stan

在原帖中查看解决方案

3 回复数
3,594 次查看
stanish
NXP Employee
NXP Employee

Hi Marcus,

here is a SDK example that uses LPUART + printf():

Example S32K_printf_implementation - S32DS 

In case you are interested in printf() over the jtag (semihosting) please check this thread:

printf() through OpenSDA 

LPUART is common UART/LIN module whereas FlexIO module is highly configurable peripheral module which you can configure to behave like UART, I2C, I2S,1-Wire....

I'd recommend you to start with LPUART driver since it is easier to understand how it works.

Hope it helps.

Stan

2,703 次查看
tzeng015
Contributor II

HI 

Can you help me about the attach file ?

I can't see the EWL ?

0 项奖励
3,592 次查看
markusmayer2017
Contributor I

Thanks for your feedback!

best regards

Markus

0 项奖励