01-19-2017 06:41 AM
I have been trying to implement simple PC client application which only sends UDP packets to server application that runs on ZYNQ custom board and is only receiving packets. Everything works fine, until I put some random printf just after lwip_recvfrom() function in server app. Then I am getting many prints "unable to alloc pbuf in recv_handler" which is printed from setup_rx_bds() function placed in xemacpsif_dma.c file. However, app doesn't crash there, but continues to work on. Nevertheless, I would like to know what could be causing this message?
I am using lwIP v1.4.1 with FreeRTOS v8.2.3.
01-20-2017 12:51 PM
01-23-2017 02:59 AM
in xemacpsif_dma.c I have found this line:
Xil_SetTlbAttributes((s32_t)bd_space, NORM_NONCACHE); // addr, attr
I changed the attribute to STRONG_ORDERED, but the behavior of the app was the same. Afterwards, I changed it to DEVICE_MEMORY, and app crashed completely whit this assert: "Assert failed in file port.c, line 424".
03-03-2017 04:22 PM
03-06-2017 04:35 AM
Unfortunately, I don't remember what I done with this one... But, I assume that was some problem with lack of memory. Try to increase parameters such as MEM_SIZE, MEMP_NUM_PBUF, PBUF_POOL_SIZE.