FRDM-K64F - Failed to printf message through TelnetServer

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

FRDM-K64F - Failed to printf message through TelnetServer

2,612 次查看
yangdongxuan
Contributor I

Hi,

Im using MQX4.1 on FRDM-K64F board.

Now I create a project to setup a TelnetServer and use it to print some messages to the Client.

I have used func '_io_set_handle()' to change the handle of stdout/stdin, but it doesnt work well.

It means when i use printf(), the message doesnt print on the client immediately, the message was printed after I input something from the client.

  if(TELNETSRV_telnetfd!=NULL)   {     _io_set_handle(IO_STDIN, TELNETSRV_telnetfd);     _io_set_handle(IO_STDOUT, TELNETSRV_telnetfd);   }   printf("hwtimer1_callback...\n");  

TELNETSRV_telnetfd is a global MQX_FILE_PTR value that I added in telnsrv.c

TELNETSRV_telnetfd  held the value of telnetfd in TELNETSRV_child()

 

Here is the code...

Original Attachment has been moved to: testboard.zip

标签 (1)
标记 (3)
0 项奖励
回复
3 回复数

2,190 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Yang,

we need to investigate more about this issue and reproduce it. Could you submit a Service Request at www.freescale.com/support please?

Best regards,

Carlos Musich

Technical Support Engineer

0 项奖励
回复

2,190 次查看
yangdongxuan
Contributor I

Hi Carlos,

Yes I will do that.

Thanks & Regards,

Yang Dongxuan

0 项奖励
回复

2,190 次查看
wenxue
NXP Employee
NXP Employee

hi Dongxuan,

Do you resolve this question?

Best Regards,

Wenxue

0 项奖励
回复