Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-16 Thread Adrian Figueroa
Gesendet: 15.09.2017 20:35 An: Mailing list for lwIP users Betreff: Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error Adrian Figueroa wrote: > There is a list of chained DMA transmit descriptors, as they seem to be > called. There is always four of them, this is hard code

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-15 Thread goldsi...@gmx.de
Adrian Figueroa wrote: There is a list of chained DMA transmit descriptors, as they seem to be called. There is always four of them, this is hard coded. My version of the STM32F4xx HAL driver leaves this as a define to the application... But you're limited by DMA-capable RAM, of course. Fo

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-15 Thread Adrian Figueroa
[mailto:lwip-users-bounces+adrian.figueroa=tu-dresden...@nongnu.org] Im Auftrag von Noam Weissman Gesendet: Friday, September 15, 2017 10:42 AM An: Mailing list for lwIP users Betreff: Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error Hi Adrian, I am using the

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-15 Thread Adrian Figueroa
t- Von: lwip-users [mailto:lwip-users-bounces+adrian.figueroa=tu-dresden...@nongnu.org] Im Auftrag von Adrian Figueroa Gesendet: Friday, September 15, 2017 8:31 AM An: Mailing list for lwIP users Betreff: Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error That memcpy

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-15 Thread Noam Weissman
lwIP users Subject: Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error That memcpy is also used on the F7. The drivers are probably the same: /* Copy data to Tx buffer*/ memcpy( (uint8_t*)((uint8_t*)buffer + bufferoffset), (uint8_t*)((uint8_t*)q->payload + payloadoff

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-14 Thread Adrian Figueroa
Von: lwip-users [mailto:lwip-users-bounces+adrian.figueroa=tu-dresden...@nongnu.org] Im Auftrag von goldsi...@gmx.de Gesendet: Thursday, September 14, 2017 5:46 PM An: Mailing list for lwIP users Betreff: Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error Adrian Figueroa wr

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-14 Thread goldsi...@gmx.de
Adrian Figueroa wrote: I can see some errors in low_level_output() in ethernetif.c. This fails: if((DmaTxDesc->Status & ETH_DMATXDESC_OWN) != (uint32_t)RESET) { errval = ERR_USE; goto error; } I don't know the F7 driver, but my F4 driver seems to have th

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-14 Thread Adrian Figueroa
for lwIP users Betreff: Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error Adrian Figueroa wrote:: >I have no idea why I have no packet loss with TCP_WND and TCP_SND_BUF >set to 2xTCP_MSS. Instead, I get rare ZeroWindow errors from my PC. Because you don't fi

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-14 Thread goldsimon
Adrian Figueroa wrote:: >I have no idea why I have no packet loss with TCP_WND and TCP_SND_BUF >set to 2xTCP_MSS. Instead, I get rare ZeroWindow errors from my PC. Because you don't fill your DMA buffers in this case and as a result, you don't drop tx segments. Implementing a zero copy driver

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-14 Thread Adrian Figueroa
Nachricht- Von: lwip-users [mailto:lwip-users-bounces+adrian.figueroa=tu-dresden...@nongnu.org] Im Auftrag von Nathan Hartman Gesendet: Thursday, September 14, 2017 2:10 PM An: Mailing list for lwIP users Betreff: Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error On Sep

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-14 Thread Nathan Hartman
On Sep 14, 2017, at 5:09 AM, Adrian Figueroa wrote: > > I did some more testing and it does not seem to be systematic. As lwIP is not > showing errors in any of the stats, it is likely not its fault. > > Do you have any suggestions on how to find the reason for dropped packets? > Maybe someon

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-14 Thread goldsimon
Adrian Figueroa wrote: >This fails: > > if((DmaTxDesc->Status & ETH_DMATXDESC_OWN) != (uint32_t)RESET) > { >errval = ERR_USE; >goto error; > } > >When DmaTxDesc->Status equals 818937856. What does this mean? Is the >DMA used by something else? I could mean your DM

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-14 Thread Adrian Figueroa
lse? Best regards, Adrian -Ursprüngliche Nachricht- Von: lwip-users [mailto:lwip-users-bounces+adrian.figueroa=tu-dresden...@nongnu.org] Im Auftrag von Sergio R. Caprile Gesendet: Monday, September 11, 2017 2:38 PM An: lwip-users@nongnu.org Betreff: Re: [lwip-users] ERR_MEM when sending

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-11 Thread Sergio R. Caprile
Perhaps your data is not being "lost" by lwIP but your driver ? Since you've found it is systematic, try to debug and follow the path to find where and what. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-11 Thread Adrian Figueroa
] ERR_MEM when sending large data, LWIP stats show no error Ha, I love the word "severe" being used here... I don't know, I've read some guys finding bugs on the Cube drivers, and seems to vary depending on which micro you are using. Search the list. The fact is that your messa

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-01 Thread Sergio R. Caprile
Ha, I love the word "severe" being used here... I don't know, I've read some guys finding bugs on the Cube drivers, and seems to vary depending on which micro you are using. Search the list. The fact is that your messages are getting lost and you need to find where... I suggest running an echo w

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-01 Thread Adrian Figueroa
. -Ursprüngliche Nachricht- Von: lwip-users [mailto:lwip-users-bounces+adrian.figueroa=tu-dresden...@nongnu.org] Im Auftrag von Sergio R. Caprile Gesendet: Friday, September 1, 2017 2:53 PM An: lwip-users@nongnu.org Betreff: Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-01 Thread Sergio R. Caprile
You have missing frames here. Frame #8 sends 1460 bytes starting @5841 Frame #9 sends 1460 bytes starting @8761 8761 - 5841 = 2920 = 2*1460 You have a frame "#8.5" (the one that should have been sent between 8 and 9) that is missing. It is getting lost somewhere between your sender and your rece

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-01 Thread Adrian Figueroa
that helps, Noam. From: lwip-users mailto:lwip-users-bounces+noam=silrd@nongnu.org>> on behalf of Adrian Figueroa mailto:adrian.figue...@tu-dresden.de>> Sent: Friday, September 1, 2017 11:15 AM To: lwip-users@nongnu.org<mailto:lwip-users@nongnu

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-01 Thread Noam Weissman
: Friday, September 1, 2017 11:15 AM To: lwip-users@nongnu.org Subject: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error Hello all, I am trying to send large amounts of data continuously. I use lwIP as a TCP client on an STM32F7 and Matlab on a PC as a TCP server. I send

Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-01 Thread Adrian Figueroa
Adrian Figueroa Gesendet: Friday, September 1, 2017 10:16 AM An: lwip-users@nongnu.org Betreff: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error Hello all, I am trying to send large amounts of data continuously. I use lwIP as a TCP client on an STM32F7 and Matlab on a PC as a

[lwip-users] ERR_MEM when sending large data, LWIP stats show no error

2017-09-01 Thread Adrian Figueroa
Hello all, I am trying to send large amounts of data continuously. I use lwIP as a TCP client on an STM32F7 and Matlab on a PC as a TCP server. I send blocks of 32768 bytes. Here are some settings for the memory sizes in lwIP: #define MEM_ALIGNMENT 4 #define MEM_SIZE 17520 #define MEMP_NUM_TCP