EmbDev.net

Forum: ARM programming with GCC/GNU tools Yagarto, FreeRTOS, uIP and socket.h


Author: Ian Mccarthy (ianmccarthy)
Posted on:

Rate this post
0 useful
not useful
First time ARM developer using:
Yagarto
FreeRTOS
uIP (TCP stack)
Destination: Olimex LPC-E2124 development board

I've installed Yagarto and the FreeRTOS example for LPC2106, I've
updated the header file for the LPC2124 processor and created a new
Yagarto project. All this compiles with a few warniings about type
casts.

I then added the uIP sources from the FreeRTOS example for the
LPC-E2124, now compilation fails in tapdev.c as it can't find:

sys/ioctl.h
sys/socket.h
sys/uio.h

True they don't exist in the Yagarto directory structure, so where can I
get them and is there a matching library I'm missing?

I searched the forum for an answer but didn't find one.

Any suggestions?

Thanks

Ian

Author: Jonathan Dumaresq (dumarjo)
Posted on:

Rate this post
0 useful
not useful
>
> I then added the uIP sources from the FreeRTOS example for the
> LPC-E2124, now compilation fails in tapdev.c as it can't find:
>
> sys/ioctl.h
> sys/socket.h
> sys/uio.h
>
> True they don't exist in the Yagarto directory structure, so where can I
> get them and is there a matching library I'm missing?
>

I'm not sure but thoses file arn't for linux build only ? from where you
get the uip ? what sample ?

regards

jonathan

Author: Ian Mccarthy (ianmccarthy)
Posted on:

Rate this post
0 useful
not useful
Jonathan Dumaresq wrote:
>>
>> I then added the uIP sources from the FreeRTOS example for the
>> LPC-E2124, now compilation fails in tapdev.c as it can't find:
>>
>> sys/ioctl.h
>> sys/socket.h
>> sys/uio.h
>>
>> True they don't exist in the Yagarto directory structure, so where can I
>> get them and is there a matching library I'm missing?
>>
>
> I'm not sure but thoses file arn't for linux build only ? from where you
> get the uip ? what sample ?
>
> regards
>
> jonathan

Direct download from Rowley Associates uip-e2124.zip, the reference is
in tapdev.c and is outside any linux only segment.

Ian

Author: Ian Mccarthy (ianmccarthy)
Posted on:

Rate this post
0 useful
not useful
Ian Mccarthy wrote:
> Jonathan Dumaresq wrote:
>>>
>>> I then added the uIP sources from the FreeRTOS example for the
>>> LPC-E2124, now compilation fails in tapdev.c as it can't find:
>>>
>>> sys/ioctl.h
>>> sys/socket.h
>>> sys/uio.h
>>>
>>> Snip...
>>>
> Direct download from Rowley Associates uip-e2124.zip, the reference is
> in tapdev.c and is outside any linux only segment.
>
> Ian

Just noticed tapdev.c and associated functions not referenced by uip
code in the example. Leave tapdev.c out of the build and project
compiles OK.

Oh we live and learn...

Thanks for the support.

Ian

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.