[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] a question about porting
From: |
Johan Karel Maria Dams |
Subject: |
Re: [lwip-users] a question about porting |
Date: |
Fri, 12 Nov 2004 08:35:22 +0200 (EET) |
Hi,
I never did it before, but I think it should be possible, in theory.
There is a port of uC/OS-II available for the PIC18XX series.
(See uC/OS-II website http://www.ucos-ii.com/)
I remember however that those PIC series don't have that much of RAM (4K
max?), so you'll be very limited there.
I think it'll be a tight fit.
Maybe you can get LwIP running without RTOS on the PIC?
There is also a port for the dsPIC30, and these have a little more RAM on
them (8K max?) so maybe you can use this one?
Hope it helps a little.
Best regards,
Johan Dams
On Thu, 11 Nov 2004, kathir wrote:
> it may be silly question . can i port Lwip to pic microcontrollers
> using uC/OS-II. pl help me
> ----- Original Message -----
> From: "Johan Karel Maria Dams" <address@hidden>
> To: "Mailing list for lwIP users" <address@hidden>
> Sent: Thursday, November 11, 2004 4:49 PM
> Subject: Re: [lwip-users] a question about porting
>
>
> > Hi,
> >
> > I don't know if this is of any help, but in my situation running uC/OS-II
> > on m32c microcontroller and a cs8900 in 8-bit polling mode I had to change
> > some macro's in etharp.c to get it working.
> > I had some similar problems, and this solved the problem. Not sure if it
> > will work for you though, but you can try.
> >
> > #define ARPH_HWLEN(hdr) (((hdr)->_hwlen_protolen) >> 8)
> > #define ARPH_PROTOLEN(hdr) (((hdr)->_hwlen_protolen) & 0xff)
> > #define ARPH_HWLEN_SET(hdr, len) (hdr)->_hwlen_protolen =
> > htons(ARPH_PROTOLEN(hdr) | ((len)))
> > #define ARPH_PROTOLEN_SET(hdr, len) (hdr)->_hwlen_protolen = htons((len) |
> > (ARPH_HWLEN(hdr) << 8))
> >
> > (This last one stays the same)
> >
> >
> > Best regards,
> > Johan
> >
> >
> > On Wed, 10 Nov 2004, jack W wrote:
> >
> > > lwip-usershello everyone
> > >
> > >
> > > i am porting the lwip into ucos . but i happen a question . i use ping
> command to ping the board and i watch the incoming data packet , it is
> running .and data is follwing :
> > > from here
> > > |
> > > 0x80043180 00 00 00 00 00 00 00 00 02 01 00 00 90 31 04 80
> .............1..
> > > 0x80043190 40 00 40 00 FF FF FF FF FF FF 00 E0 4C 03 18 72
> @address@hidden
> > > 0x800431a0 08 00 06 04 08 00 06 04 00 01 00 E0 4C 03 18 72
> ............L..r
> > > 0x800431b0 C0 A8 00 01 00 00 00 00 00 00 C0 A8 00 03 20 20
> ..............
> > > | end
> > >
> > > but in the function arp_arp_input() ; it watch the pointer hdr
> > >
> > > ...hdr
> > > ethhdr
> > > ....dst ff ff ff ff ff ff
> > > ....src 00 e0 4c 03 18 72
> > > hwtype 0x01000
> > > proto 0x0008
> > > _hwlen_protolen 0x0406
> > > shwaddr
> > > ..... 00 e0 40 03 18 72
> > > sipaddr
> > > ..... 0x0100a8c0
> > > dhwaddr
> > > ..... 00 00 00 00 00 00
> > > dipaddr
> > > ...... 0x20200300 <---- why happen this error ,my board ip
> should be 0x0300a8c0 "192.168.0.3
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > lwip-users mailing list
> > > address@hidden
> > > http://lists.nongnu.org/mailman/listinfo/lwip-users
> > >
> >
> >
> >
> > _______________________________________________
> > lwip-users mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/lwip-users
>
>
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>