COM channel printf - MK60DN512xxx10

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

COM channel printf - MK60DN512xxx10

2,804 次查看
carbon
Contributor I

Hello,

I have a MK60DN512xxx10, can someone please show me how to use "printf" and "scanf" from standard stdio.h over COM channel?

Right now I have two channels open, COM4 which is writing dots over and over and COM5 which does absolutely nothing.

Right now, I use semihosting - telnet when debugging, but I need a two way communication.

7 回复数

1,408 次查看
sooryakrishnanu
Contributor III

I have the same question but for a different towre kit. I use K53n512 twr kit

0 项奖励
回复

1,408 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Sooryakrishnan U,

  About TWR-K53 printf code, please refer to the attached code.

If you still have question, please contact me!

Have a great day,

Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,406 次查看
joicemarkose
Contributor II

Hi I burned the code into my tower syytem which includes twr-ser board along with it.Still my teminal window shows nothing!should i use the board standalone or is there any problem if i use my twr board with twr ser board?

1,407 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Joice,

Please check you use which UART to transfer , for the TWR-k53 example , the TWR-k53  use the UART0(J27),

while the TWR-SER use the UART3 (when connected to the TWR-K53 ).

Hope it helps

Alice

1,408 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Please note, the code is printf from the tower Kxx, not the ser board.

1,408 次查看
kerryzhou
NXP TechSupport
NXP TechSupport


Hi Tomas,

     Please refer to this post:

How to use printf() to print string to Console and UART in KDS2.0

    Besides, you also can refer to the KSDK1.3.0,  folder:C:\Freescale\KSDK_1.3.0\examples\twrk60d100m

   These code are also using the printf from stdio.h

If you still have question, please contact me!

Have a great day,

Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,408 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Tomas,

Please tell me you use which IDE ?

BR

Alice

0 项奖励
回复