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.

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

2017-09-15 Thread Adrian Figueroa
Hi Noam, thanks for your remark. I may also have some lwIP settings that are not correct or optimal. Thus, I would also be interested in your lwipopts.h file. What are the transfer rates that you reach? Can you continuously transmit without packet loss? Kind regards, Adrian Von: lwip-users

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

2017-09-15 Thread Adrian Figueroa
Beware: long text I will try to write a new driver or repair the current one. However, I have some questions for a better understanding of the underlying principles. At the moment I only care about transmitting. Let's start with the initialization of the DMA transmit buffers. There is a list

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

2017-09-15 Thread Noam Weissman
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

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

2017-09-15 Thread Adrian Figueroa
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: