Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

NiMc_1688136
Contributor II

SDK 6.2.0

CYW43907

FreeRTOS + lwIP

I have been using wiced_tcp_send_packet without any issues until i tried to send larger packets. I then switched to wiced_tcp_send_buffer and it works great in an example application with no TLS but once TLS is added and the packet is large enough to be fragmented, I run into a data_abort exception. The best that I can tell, the problem occurs in wiced_tcpip_common.c, at line 213, during the free call.

        if (enc_buf_allocated == WICED_TRUE)

        {

            free(enc_output_buf);

            enc_output_buf = NULL;

        }

Has anyone seen this?

The packet i was attempting to send was between 1800 and 1900 bytes.

0 Likes
1 Solution
PriyaM_16
Moderator
Moderator

Have you tried increasing the packet pool size:

GLOBAL_DEFINES += TX_PACKET_POOL_SIZE=xx \

                     RX_PACKET_POOL_SIZE=xx \

                     WICED_TCP_TX_DEPTH_QUEUE=xx \

                     WICED_TCP_RX_DEPTH_QUEUE=xx

Choose xx to be a value greater then your current value.

View solution in original post

3 Replies
PriyaM_16
Moderator
Moderator

Have you tried increasing the packet pool size:

GLOBAL_DEFINES += TX_PACKET_POOL_SIZE=xx \

                     RX_PACKET_POOL_SIZE=xx \

                     WICED_TCP_TX_DEPTH_QUEUE=xx \

                     WICED_TCP_RX_DEPTH_QUEUE=xx

Choose xx to be a value greater then your current value.

View solution in original post

NiMc_1688136
Contributor II

Thanks for the response Priya. I have not made the queues/pools larger through my makefile so the application is using the default values.

This is simple enough for me to test it today. I will follow up with the results.

0 Likes
PriyaM_16
Moderator
Moderator

Hello,

Were you able to send large packets by increasing the packet pool size?

0 Likes