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+noam=silrd....@nongnu.org> on behalf of 
Adrian Figueroa <adrian.figue...@tu-dresden.de>
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+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 <lwip-users@nongnu.org>
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
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

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

Reply via email to