Hi karol, I didnot change memory(65536) and read input buffer size(128). I tried changing the TX_NO_WAIT to 1, but the result is same. Data size what i am writing is less than 50 characters. As per my observation, Once the nx_tcp_socket_send returns 0x56 , g_sf_comms.p_api- write(g_sf_comms.p_ctrl,log,strlen(log),1); is hanging at _ux_device_class_cdc_acm_write at line number 309 in sf_el_ux_comms.c file. What is the relation between these two API's? Here is my lines of code. status = nx_packet_allocate(&pool_0,&send_packet_ptr,NX_TCP_SOCKET, 500); status = nx_packet_data_append(send_packet_ptr,(void *)buf,count,&pool_0,NX_WAIT_FOREVER); status = nx_tcp_socket_send(&my_socket,send_packet_ptr,NX_WAIT_FOREVER); if(status) { status=nx_packet_release(send_packet_ptr); strcpy(log,"socket send failed\n"); g_sf_comms.p_api- write(g_sf_comms.p_ctrl,log,strlen(log),1); return -1; }
↧