UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
323 Views
Registered: ‎01-13-2016

LWIP PBUF memory allocation

Can the PBUF allocation be configured in the Xilinx LWIP examples? I want to use CDMA to transfer the data that comes in over Ethernet to a PL buffer. When Iook at the pointer to the payload on the LWIP packet struct, it is some address to memory that the CDMA cannot access.

 

I'm wondering if the reason for that is because the LWIP is configured to allocate memory for the PBUF in a reserved memory space. I notice in pbuf.h there are several enumerated PBUF types, including RAM ROM, REF, and POOL. Maybe if I change this to one of the other types, the buffer will be allocated in a memory range that the CDMA can access? Is there a way to make this change? I don't see anything that seems to do that in the BSP LWIP options.

0 Kudos