|
From: | Noam Weissman |
Subject: | Re: [lwip-users] Problem with TCP write. |
Date: | Mon, 23 Oct 2017 09:09:28 +0000 |
Gautam, How much RAM do you have ?? You have defined 4K RAM for MEM_SIZE but all your other settings are not proportional (I think) TCP_MSS is defined 1460 from 4K ?... please see default settings (set to 536) Your mailbox size are high without RAM ? Please check a working project and read memory settings documentation. Change your code to have #define MEMP_NUM_TCP_SEG TCP_SND_QUEUELEN From previous problems It was different and caused me memory error’s Noam. From: lwip-users [mailto:lwip-users-bounces+address@hidden
On Behalf Of Gautam Kumar Hi Noam, Sorry I had attached the wrong file. Please check this and help me out. Thanks in Advance Gautam From: lwip-users [mailto:lwip-users-bounces+address@hidden]
On Behalf Of Noam Weissman Hi Gautam, First of all you are not supposed to make changes in opt.h file…
For that you need to add lwipopts.h in your own code ! Have you started with an example or did you dive into it with seeing that a simple echo server is working ? I suggest starting to read some documentations and continuing from there. BR, Noam. From: lwip-users [mailto:lwip-users-bounces+address@hidden]
On Behalf Of Gautam Kumar Hi Noam, Please find the attached file.
Can you please help me out if you find anything not configured properly? Regards, Gautam From: lwip-users [mailto:lwip-users-bounces+address@hidden]
On Behalf Of Noam Weissman Gautam, Check err.h file ! /** Out of memory error. */ ERR_MEM = -1, You are doing something wrong in your code or did not properly defined your memory settings in lwipopts.h If you show your code, it would help. BR, Noam. From: lwip-users [mailto:lwip-users-bounces+address@hidden]
On Behalf Of Gautam Kumar Hi All, I am using LWIP with ATSAME70. I am trying to send data over TCPIP, the port is getting opened successfully, but while send the data using TCP_Write(), it gives the error -1. Please help me out in this regard. Regards, Gautam |
[Prev in Thread] | Current Thread | [Next in Thread] |