FRDM-K64F - Failed to printf message through TelnetServer

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

FRDM-K64F - Failed to printf message through TelnetServer

1,213 Views
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

Labels (1)
Tags (3)
0 Kudos
3 Replies

791 Views
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 Kudos

791 Views
yangdongxuan
Contributor I

Hi Carlos,

Yes I will do that.

Thanks & Regards,

Yang Dongxuan

0 Kudos

791 Views
wenxue
NXP Employee
NXP Employee

hi Dongxuan,

Do you resolve this question?

Best Regards,

Wenxue

0 Kudos