For your information,
I found a problem in the bsd socket connect function in file "nx_tcp_client_socket_connect.c"
I'm using a non blocking socket
When i want to connect my socket to a tcp server, the "connect" function always returns "NX_IN_PROGRESS"
But in the connect function in file "nxd_bsd", it's waiting "NX_SUCCESS" only
I compared the file "nx_tcp_client_socket_connect.c" between SSP synergy and FSP for RA and found a difference.
This code is missing in Fsp :
/* Determine if the connection is complete. This can only happen in a connection
between ports on the same IP instance. */
if (socket_ptr -> nx_tcp_socket_state == NX_TCP_ESTABLISHED)
/* Release the protection. */
tx_mutex_put(&(ip_ptr -> nx_ip_protection));
/* Return a successful status. */
I think the Synergy code is good.
Thank you for noticing this issue and providing its solution. I will forward it to the AE team to make the necessary changes.
If this response, or one provided by another…
If this response, or one provided by another user, answers your question, please verify the answer. Thank you!
Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/