working printf example using PE MQX Standard in KDS3.0 + KSDK1.20

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

working printf example using PE MQX Standard in KDS3.0 + KSDK1.20

917 Views
F50SC
Contributor III

Hi Everyone

Can anyone share a WORKING printf example using PE MQX Standard in KDS3.0 + KSDK 1.2.0

Thanks in advance!

Regards

Jerome

0 Kudos
6 Replies

500 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jerome,

About which chip ?

And print to console or UART ?

BR

Alice

0 Kudos

500 Views
F50SC
Contributor III

Hi Alice

In addition to the above, the example showing a printf statement from main.c.

Regards

Jerome

0 Kudos

500 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Jerome,

Yes, you can refer to the thread Daniel mentioned.

When  using PE MQX Standard in KDS3.0 + KSDK 1.2.0 , you only need add the fsl_uart  component , and configure it refer to your board,

then you can use the printf funtion.

Hope it helps

Alice

0 Kudos

500 Views
F50SC
Contributor III

Hi Alice

This project does not show if it is possible to use printf using MQX Standard AND from main.c......it shows how to print from a task once MQX has started.

I have sinced moved our main.c printf statements to the first task that is executed and used it as a bootup task and for initialization of our application.

My printfs were working from main.c using MQX Lite....but stopped after moving to MQX Standard.

Regards

Jerome

0 Kudos

500 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Jerome:

Please check the following thread, there is an example about printf in KSDK+MQX+PE

sdk_standard mqx +PE -- printf -kds3.0

Regards

Daniel

0 Kudos

500 Views
F50SC
Contributor III

Hi Alice

FRDM-K22F board

or

MK22FN512VLL12

MK24FN1M0VLL12

MK22FX512VLL12

Print to UART1 on FRDM-K22F as this will use OpenSDA/OCD connection....

or

Print to UART4 for MK22FX512VLL12 or MK24FN1M0VLL12 MCU.

Regards

Jerome

0 Kudos