cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Charanm4407
Visitor
Visitor
583 Views
Registered: ‎07-22-2020

lwip "unable to alloc pbuf in recv_handler" error

I have been trying to implement simple PC client application which only sends tcp 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 Vivodo sdk 2017.2

0 Kudos
1 Reply
nanz
Moderator
Moderator
555 Views
Registered: ‎08-25-2009

HI @Charanm4407 ,

Please check this forum post and see if it helps.

https://forums.xilinx.com/t5/Ethernet/lwIP-netif-unable-to-alloc-pbuf-in-recv-handler-message/m-p/1104439

 


-------------------------------------------------------------------------------------------

Don’t forget to reply, kudo, and accept as solution.

If starting with Versal take a look at our Versal Design Process Hub and our Versal Blogs and our Versal Ethernet Sticky Note.

-------------------------------------------------------------------------------------------