S32K and printf() implementation

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

S32K and printf() implementation

Jump to solution
4,275 Views
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 Solution
3,741 Views
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

View solution in original post

3 Replies
3,742 Views
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,851 Views
tzeng015
Contributor II

HI 

Can you help me about the attach file ?

I can't see the EWL ?

0 Kudos
Reply
3,740 Views
markusmayer2017
Contributor I

Thanks for your feedback!

best regards

Markus

0 Kudos
Reply