01-04-2018 12:55 PM
is there a reference design or guide on Microblaze bare-metal TCP/ip, i'm guessing I need lwip?
I saw this but is this only for Linux?
01-04-2018 01:16 PM
@s002wjhw There is (1) design and (2) software pieces to this.
As for (1) the usual solution is to get your board ethernet exposed as an AXI stream interface somehow. This will depend on what hardware you have. In the simplest case, it involves rigging your board's GMII/RGMII interface to the tri-mode ethernet Vivado component
Of course, for 10G there are other components and for Ultrascale+ devices, there is the 10G/25G component.
Regarding (2), you can go with SDK lwip echo server, which comes standard. The standalone example supports Marvell, TI and the 10G interfaces on Xilinx boards (ZC702, ZC706, ZCU102, etc). Other than that you need to supply your own (or the supplier's) device drivers.
01-05-2018 01:32 PM
01-08-2018 12:37 PM - edited 01-08-2018 12:52 PM
any software example base on AXI Ethernet subsystem?, the xapp1026 use axi Ethernet lite, don't think I can use tri-pcs etc for it.
01-08-2018 01:25 PM
XAPP 1307 uses 1G/10G Ethernet subsystem
It exposes an AXI stream interface, so you only need to add a DMA engine to pipe it into memory and then use Microblaze to set up interrupts/polling, for which there are plenty of examples in the SDK.
01-10-2018 01:29 PM
Ok thanks, base on pg138, my firmware already has DMA connect to AXI controller->BRAM
My understand I only need bare-metal DMA code to access bram and get data from AXI Ethernet.
01-10-2018 02:42 PM
@s002wjhw Well you **usually** need to initialize/configure the ethernet - see the LWIP example in SDK. But apart from that, yes, you just need to configure the DMA component.
01-11-2018 08:24 AM
i'm assuming base on pg138 I need use DMA in SG mode either interrupt/polling? Can I use DMA in simple polling that's connect to axi Ethernet?
01-11-2018 09:33 AM
01-11-2018 10:50 AM - edited 01-11-2018 12:06 PM
I was looking at xapp1026 notice the kc705 has axi dma and axi Ethernet basically similar to pg138. but it also has the software,
my question is in the doc it mention repository stack for "For MicroBlaze-based systems, it also has repository folder for lwIP 1.4.1 stack for the Artix-7 and Kintex-7" do I need this if so where can I get the vivado2017.2 verision or its already in SDK.
does microblaze lwip tcp/ip need xilkernel(or its just another word for standalone BSP?) for it to work? or not
01-11-2018 12:21 PM
11-16-2018 01:19 AM - edited 11-16-2018 06:09 AM
"I'm not fluent in software so prefer something like Lwip I can drop in"
Lwip is a software library not a magic wand. It allegedly allows developers to write less code at a higher level but with the added risk of having a big thing they haven't developed, they don't understand and they won't have the time, resources, skills and experience to dig into it and fix it if necessary. And even with minimal complexity software projects requiring minimal robustness and quality of delivery, bugs are highly probable to happen.
My advice for someone who is not fluent in software is either avoid it or get surrounded by people who is.
02-22-2019 03:09 AM
Are you okay buddy? Quite angry reaction there. Be well.