Re: [lwip-users] lwIP with FreeRTOS memory problem

2016-11-29 Thread Noam Weissman
for lwIP users Subject: Re: [lwip-users] lwIP with FreeRTOS memory problem All right people, but since my main goal is to know the exact amount of memory the lwIP uses, could I just find that out without setting MEMP_MEM_MALLOC to 1, since it seems that it requires some changes in the kernel itself

Re: [lwip-users] lwIP with FreeRTOS memory problem

2016-11-29 Thread pekez
All right people, but since my main goal is to know the exact amount of memory the lwIP uses, could I just find that out without setting MEMP_MEM_MALLOC to 1, since it seems that it requires some changes in the kernel itself, as Richard and Simon explained. I am still not daring to make such

Re: [lwip-users] lwIP with FreeRTOS memory problem

2016-11-29 Thread Simon Goldschmidt
Noam Weissman wrote: > As far as I remember communication stopped and maybe it crashed or not this > is not the issue. > The issue is that once I set my defines as suggested this problem was never > happened again. This is totally off topic here. The OP has set MEMP_MEM_MALLOC to 1. In this

Re: [lwip-users] lwIP with FreeRTOS memory problem

2016-11-29 Thread Noam Weissman
essage- From: lwip-users [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On Behalf Of Simon Goldschmidt Sent: Tuesday, November 29, 2016 11:26 AM To: lwip-users@nongnu.org Subject: Re: [lwip-users] lwIP with FreeRTOS memory problem Noam Weissman wrote: > Several years ago when I starte

Re: [lwip-users] lwIP with FreeRTOS memory problem

2016-11-29 Thread Simon Goldschmidt
Noam Weissman wrote: > Several years ago when I started working with LwIP I had a similar problems > to the one you raised. > System was working ok but out of the blue it crashed. > [..] > I found the hard way that I am getting MEM_ERR because of the above. I did > not had sufficient

Re: [lwip-users] lwIP with FreeRTOS memory problem

2016-11-29 Thread Noam Weissman
e only one That encountered. Hope that helped. BR, Noam. From: lwip-users [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On Behalf Of Noam Weissman Sent: Monday, November 28, 2016 1:14 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] lwIP with FreeRTOS memory problem Hi, I am not su

Re: [lwip-users] lwIP with FreeRTOS memory problem

2016-11-29 Thread Simon Goldschmidt
pekez wrote: > [..] > However, when I set MEMP_MEM_MALLOC to 1 [..] > it crashes when XEmacPs_IntrHandler (I am using Xilinx layer 2 drivers) tries > to allocate memory for pbuf. I'm afraid using MEMP_MEM_MALLOC from interrupt does currently not work: it will allocate any memory from the heap,

Re: [lwip-users] lwIP with FreeRTOS memory problem

2016-11-28 Thread Noam Weissman
Hi, I am not sure with my reply as this area is not so documented. What I can see in your lwipopts that you use tons of memory for the LwIP heap but other defines are way to small For example: #define MEMP_NUM_PBUF 16<<< ? #define MEMP_NUM_UDP_PCB 4 #define MEMP_NUM_TCP_PCB 32 #define

Re: [lwip-users] lwIP with FreeRTOS memory problem

2016-11-28 Thread FreeRTOS Info
On 28/11/2016 12:17, Nenad Pekez wrote: Richard, first of all, thanks for your quick response. What I forgot to mention is that application doesn't crash at the very beginning, it actually works for some time how it should work and than suddenly crashes. I suppose that problem you mention

Re: [lwip-users] lwIP with FreeRTOS memory problem

2016-11-28 Thread Nenad Pekez
Richard, first of all, thanks for your quick response. What I forgot to mention is that application doesn't crash at the very beginning, it actually works for some time how it should work and than suddenly crashes. I suppose that problem you mention would manifest itself right from the

Re: [lwip-users] lwIP with FreeRTOS memory problem

2016-11-28 Thread FreeRTOS Info
On 28/11/2016 02:17, pekez wrote: Hello people, I've been trying to figure out how lwIP uses memory and it's really important to know exact (or maximum) amount of memory that lwIP uses. I am using lwIP v1.4.1 with FreeRTOS v8.2.3 on ZYNQ custom board. Right now, I am working with application