Forum Discussion
Altera_Forum
Honored Contributor
19 years agoLwip basic question
Hi all, I'm starting with lwip, but have some problems with functions calling. I`m trying to create a simple UDP connection, the code is as follows: #include <stdio.h># include "lwip...
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- Hi, First of all, I have to make decision between InterNiche Stack and LwIP stack. I am using opencores ethernet mac which is tested with InterNiche stack, but i don't know how to make that. LwIP stack is formerly used in my company but for an old project that used different MAC, NIOS, IDE.... --- Quote End --- We chose lwIP because it's smaller, faster, and more reliable (and the support behind it is good). It's also free but this was a bonus - that didn't matter. The Altera TSE driver is slow and inefficient - and buggy. If you need IPv6 then lwIP is not an option for you. --- Quote Start --- After I add the path to the include path in build project properties (even if i already add it in include path & symbols), I have errors : When I double-click on this error, it doesn't lead me to the error location, I have to manually edit file and go to the error line. "go to error location" works well with opencores ethernet files (component in fpga and then in system library). --- Quote End --- OK, well, I see this with all errors in Eclipse - so this is an IDE problem. I've just gotten used to it I suppose. :mad: --- Quote Start --- I suspect bad syntax handler with some C keywords like struct, typedef, enum.... I say that because I had experienced troubles with typedef keyword. If it is too hard to implemant LwIP, I will have a look at InterNiche. --- Quote End --- It may be hard to implement, but it will be worth it. --- Quote Start --- Maybe those include problems is related to your first post : undefined reference to netconn_new() OR NETCONN_UDP is badly defined (exists in api.h ;-)) --- Quote End --- This wasn't my post, but I do see the error tracking bug you're talking about. Bill A.