TCP IP connection Issue

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
veb_4093841
Level 2
Level 2

We are using CYW43907 chip in STA Mode. we are using WICED studio version 6.4 with Free RTOS + LwIP.

Rarely Some times , we observe wiced_tcp_connect() returning the error code '17'.  What does this error code means ?

0 Likes
1 Solution
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

The error code stands for operation aborted. You can find the details in 43xxx_Wi-Fi/include/wiced_result.h and the implementation can be found in 43xxx_Wi-Fi/WICED/network/LwIP/WICED/tcpip.c. My advise to you would be to enable tcpip debug prints (How to enable Debug prints for LwIP in WICED SDK) for lwip and check the exact issue in the concerned file and relevant debug prints; if breakpoints are not an option because of the rarity.

View solution in original post

1 Reply
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

The error code stands for operation aborted. You can find the details in 43xxx_Wi-Fi/include/wiced_result.h and the implementation can be found in 43xxx_Wi-Fi/WICED/network/LwIP/WICED/tcpip.c. My advise to you would be to enable tcpip debug prints (How to enable Debug prints for LwIP in WICED SDK) for lwip and check the exact issue in the concerned file and relevant debug prints; if breakpoints are not an option because of the rarity.