lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Noam Weissman
Subject: Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error
Date: Fri, 15 Sep 2017 08:41:48 +0000

Hi Adrian,


I am using the STM32F765 and do not see real any problem. The driver and low level are

very similar to the F4.. There are some small changes in initializing code but there is a change

in descriptors location. For some reason they force it to be on a specific section. Maybe

a DMA limitation ?


I am out of my office now. If I will not forget I will post my drivers and low level first thing

next week.


Have a nice weekend,

Noam.



From: lwip-users <lwip-users-bounces+address@hidden> on behalf of Adrian Figueroa <address@hidden>
Sent: Friday, September 15, 2017 9:30 AM
To: Mailing list for 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 + payloadoffset), (ETH_TX_BUF_SIZE - bufferoffset) );
     
Adrian


-----Ursprüngliche Nachricht-----
Von: lwip-users [mailto:lwip-users-bounces+address@hidden] Im Auftrag von address@hidden
Gesendet: Thursday, September 14, 2017 5:46 PM
An: Mailing list for lwIP users <address@hidden>
Betreff: Re: [lwip-users] ERR_MEM when sending large data, LWIP stats show no error

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 the same code lines.
It's worse there since they even memcpy from pbufs to the DMA descriptors... :-(

Simon

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

[Prev in Thread] Current Thread [Next in Thread]