EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

lwIP on LPC2378 board Olimex

Started by fretkroket December 15, 2008
Is here anyone who had made a working mac driver for the Olimex LPC2378?
In the last 2 weeks, i have edit the lwip project download from this
website. But this project is ported for another PHY chip.

I change it to my micrel PHY chip, but nothing seems to work.
I made a ARP packet by hand to test if my MAC + PHY is working.
But I see nothing on wireshark.


An Engineer's Guide to the LPC2100 Series

fretkroket wrote:

e-mail sent with zip file, good luck with it. :-)

> Is here anyone who had made a working mac driver for the Olimex
> LPC2378? In the last 2 weeks, i have edit the lwip project download
> from this website. But this project is ported for another PHY chip.
>
> I change it to my micrel PHY chip, but nothing seems to work.
> I made a ARP packet by hand to test if my MAC + PHY is working.
> But I see nothing on wireshark.
>
>
>
Dear michael,

thanx for your ethernet code.
Are you sure this is the final code for the lpc2378-STK board?
I'm using the board without the LCD, the olimex lpc-p2378.
The default address of the Micrel PHY chip is 0x00001 (see datasheet)
But you are using #define DP83848C_DEF_ADR 0x0100 /* Default PHY device address */
So I was wondering if this was the working code.
In that case, you had another PHY chip or the PHY address pins are different from the older olimex boards

Willem

________________________________
From: michael brown
To: l...
Sent: Monday, December 15, 2008 3:48:09 PM
Subject: Re: [lpc2000] lwIP on LPC2378 board Olimex
fretkroket wrote:

e-mail sent with zip file, good luck with it. :-)

> Is here anyone who had made a working mac driver for the Olimex
> LPC2378? In the last 2 weeks, i have edit the lwip project download
> from this website. But this project is ported for another PHY chip.
>
> I change it to my micrel PHY chip, but nothing seems to work.
> I made a ARP packet by hand to test if my MAC + PHY is working.
> But I see nothing on wireshark.
>
>
> ------------ --------- --------- ------
Piet Friet wrote:
> Dear michael,
>
> thanx for your ethernet code.
> Are you sure this is the final code for the lpc2378-STK board?
> I'm using the board without the LCD, the olimex lpc-p2378.
> The default address of the Micrel PHY chip is 0x00001 (see datasheet)
> But you are using #define DP83848C_DEF_ADR 0x0100 /* Default
> PHY device address */
> So I was wondering if this was the working code.
> In that case, you had another PHY chip or the PHY address pins are
> different from the older olimex boards

It worked on my board. That address gets bit-wise ORd with the phy register
number, so perhaps that explains it. AIUI, 0x0100 would be phy 1 register
0. I did not write most of the code, and it's been a year since I played
with it. IIRC, there is ERRATA info on the 2378 with regards to the buffer
setup (number of descriptors).
michael brown wrote:
> Piet Friet wrote:
>> Dear michael,
>>
>> thanx for your ethernet code.
>> Are you sure this is the final code for the lpc2378-STK board?
>> I'm using the board without the LCD, the olimex lpc-p2378.
>> The default address of the Micrel PHY chip is 0x00001 (see datasheet)
>> But you are using #define DP83848C_DEF_ADR 0x0100 /* Default
>> PHY device address */
>> So I was wondering if this was the working code.
>> In that case, you had another PHY chip or the PHY address pins are
>> different from the older olimex boards
>
> It worked on my board. That address gets bit-wise ORd with the phy
> register number, so perhaps that explains it. AIUI, 0x0100 would be
> phy 1 register
> 0. I did not write most of the code, and it's been a year since I
> played with it. IIRC, there is ERRATA info on the 2378 with regards
> to the buffer setup (number of descriptors).

To follow up, I did a "make clean" followed by "make" to rebuild it all. I
then tested it with my board and it works just like it should. I could ping
the board with no problems. That particular #define came from the sample
code I hacked up.
Michael,

Could you send me a copy as well?

Many thanks in advance.

Dave

--- In l..., "michael brown" wrote:
>
> fretkroket wrote:
>
> e-mail sent with zip file, good luck with it. :-)
>
> > Is here anyone who had made a working mac driver for the Olimex
> > LPC2378? In the last 2 weeks, i have edit the lwip project
download
> > from this website. But this project is ported for another PHY
chip.
> >
> > I change it to my micrel PHY chip, but nothing seems to work.
> > I made a ARP packet by hand to test if my MAC + PHY is working.
> > But I see nothing on wireshark.
> >
> >
> >
> >
> >
> >
> >
Would you please send me a copy of your file too?
I am using the LPC2468-16 OEM Board from EA which has the Micrel PHY
KSZ8001L. I hope your code could ease my efforts to get it running.
Thank you.

Henry
--- In l..., "michael brown" wrote:
>
> fretkroket wrote:
>
> e-mail sent with zip file, good luck with it. :-)
>
> > Is here anyone who had made a working mac driver for the Olimex
> > LPC2378? In the last 2 weeks, i have edit the lwip project download
> > from this website. But this project is ported for another PHY chip.
> >
> > I change it to my micrel PHY chip, but nothing seems to work.
> > I made a ARP packet by hand to test if my MAC + PHY is working.
> > But I see nothing on wireshark.
> >
> >
> >
> >
> >
> >
> >
NilKrokodil wrote:
> Michael,
>
> I would be very interested in that file as well.

Man, I sure didn't expect that much interest in some junk code. ;-)
Warning: This code is not even close to production quality, it's just some
stuff that I got to work at home. I didn't write most of it; it came from a
Keil example IIRC. It doesn't handle having the network cable plugged in
after initialization since it wants to negotiate with the hub during init.

I uploaded it to the files section:
http://groups.yahoo.com/group/lpc2000/files/LPC23XX/enet.zip
Thanks very much :)

----- Original Message -----
From: michael brown
To: l...
Sent: Friday, December 19, 2008 4:09 PM
Subject: Re: [lpc2000] lwIP on LPC2378 board Olimex
NilKrokodil wrote:
> Michael,
>
> I would be very interested in that file as well.

Man, I sure didn't expect that much interest in some junk code. ;-)
Warning: This code is not even close to production quality, it's just some
stuff that I got to work at home. I didn't write most of it; it came from a
Keil example IIRC. It doesn't handle having the network cable plugged in
after initialization since it wants to negotiate with the hub during init.

I uploaded it to the files section:
http://groups.yahoo.com/group/lpc2000/files/LPC23XX/enet.zip



The 2024 Embedded Online Conference