The question about the tftpsrv in the MQX

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

The question about the tftpsrv in the MQX

513 Views
小勇邹
Contributor II

 

The “tftpsrv.c” is used in my application. When I write the file to my application by tftp for many times, there is an error “TFTP Server Failure”. The error happens when writing the file in the 6th times. I set the break pointer to find the reason. I find that the source code run to the red part as follow shown. But if I read the file for many times, there is not any error. Can you help me find out the reason?

 

Remark:

  1. 1.My hardware : TWRK64F120M.The compiler is IAR7.4.
  2. 2.The MQX: Freescale_MQX_4_1_TWRK64F120M
  3. 3.The PC software is “Tftpd32 by Ph.Jounin”
  4. 4.The error happens in the source code of “tftpsrv.c”.

       

/* create a socket for the new transaction */

 

   trans_ptr->SOCK = socket(PF_INET, SOCK_DGRAM, 0);

 

   if (trans_ptr->SOCK == RTCS_SOCKET_ERROR) {

 

TFTP_SEND(tftpsrv_ptr->SRV_SOCK, _tftp_error_srv, sockaddr_t);

 

RTCS_io_close(trans_ptr->TRANS_FILE_PTR);

 

_mem_free(trans_ptr);

 

      return;

 

   } /* Endif */

 

0 Kudos
Reply
1 Reply

350 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Robbin:

MQX 4.2 GA is available online, I suggest you try this on MQX 4.2, it fixed one tftp client issue

Regards

Daniel

0 Kudos
Reply