- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am trying to implement a UDP-server on my NIOS II dev kit. In order to create a UDP-server I am trying to implement the function socket( ) to establish a connection. But I don't know which file or folder to include in order for it to work. I'm using the NIOS II 5.0 IDE. Can anyone tell me how to fix it!? Cheers, DannyLink Copied
9 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using the standalone LWIP port for the Altera HAL? If so, the better thing you can do is to modify the example that is distributed together with the LWIP port... (Note that you have to use the raw API, not the socket API... there is a text file inside the demo)
bye PJ- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by paolo.gai@Nov 1 2005, 09:33 AM are you using the standalone lwip port for the altera hal? if so, the better thing you can do is to modify the example that is distributed together with the lwip port... (note that you have to use the raw api, not the socket api... there is a text file inside the demo)
bye
pj
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10723)
--- quote end ---
--- Quote End --- Hi PJ, which example are you refering to!? Do you mean the LWIP Webserver?! So you say raw API is faster then the socket API?! Cheers, Danny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- --- Quote Start --- Are you using the standalone LWIP port for the Altera HAL? If so, the better thing you can do is to modify the example that is distributed together with the LWIP port... (Note that you have to use the raw API, not the socket API... there is a text file inside the demo) bye PJ <div align='right'><{post_snapback}> (index.php?act=findpost&pid=10723)</div> --- Quote End --- Hi PJ, I tried to run the LWIP Web Server but the compiler is complaining about missing several .h-files. But when I browse through the directory they are there. I never worked with this IDE before, so can you tell me how to include files or paths with this IDE!? Cheers, Danny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Yes, the RAW API is typically more efficient than the socket API... (however, it is a little bit more complex to be used)
- about the missing .h files... the readme cites a set of directories that have to be added to the project. Please follow exactly the readme file... PJ- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi PJ,
I know which directories to add to the project. That isn't the problem, but how do I include these. I don't have an option to add these in my NIOS II IDE. Cheers, Danny- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by dannyjacobs@Nov 2 2005, 11:54 AM i know which directories to add to the project. that isn't the problem, but how do i include these. i don't have an option to add these in my nios ii ide.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10736)
--- quote end ---
--- Quote End --- right click on the project name, then select properties. then, "C/C++ Build". inside the "configuration settings", "Tool Settings", choose "Nios II compiler/General" in the tree view. the include paths are on the right :-) PJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Danny,
If you have the "eval" version of the Nios II kit installed, the Web server and simple socket server templates/examples will not function. This is because they depend upon uC/OS-II, which is not included in the "eval" version. There is, however, a dated version of standalone LWIP (based upon LWIP 0.7.1) available from this forum. It ships complete with a software example (web and echo server). If you plan to go this route, please be sure to go through the readme. Cheers, - slacker- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by slacker@Nov 2 2005, 01:13 PM danny,
if you have the "eval" version of the nios ii kit installed, the web server and simple socket server templates/examples will not function. this is because they depend upon uc/os-ii, which is not included in the "eval" version.
there is, however, a dated version of standalone lwip (based upon lwip 0.7.1) available from this forum. it ships complete with a software example (web and echo server). if you plan to go this route, please be sure to go through the readme.
cheers,
- slacker
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10742)
--- quote end ---
--- Quote End --- Slacker, the webserver-example is working properly seeing I don't have the eval kit. This wasn't the problem. The problem was that I could not include any file or dir into my project. But thanks for the suggestion anyway. Cheers, Danny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
allright it seems to be working now....
no function socket() that is... Have to do it another way, but I know how to be doing it.... Danny
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page