Discussion group dedicated to the Philips LPC2000 family of ARM MCUs
TCP/IP send and receive with LPC2378 - "h.belig" - Jul 24 7:55:54 2008
Hello,
I am using a Keil MCB2300 evaluation board with LPC2378 and Keil's
=B5Vision3 IDE (evaluation).
I want to send blocks of data via TCP/IP to another computer and vice
versa receive data from that other computer.
Just this, nothing else (regarding ethernet).
Now, I know that the ethernet subject is a very complex one. I am
looking for a simple solution that doesn't force me to dive into all
those details of layers, protocols, PHY register settings and so on.
Just a send and a receive function would be ideal (an illusion - I know).
Does anybody have a suggestion how this problem can be solved or where
appropriate examples can be found?
If such a simple solution is not possible, the recommendation probably
is "Buy a TCP/IP stack!". Any suggestions for one that is reliable and
easy to implement?
Henry
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: TCP/IP send and receive with LPC2378 - "Glazar, Bostjan" - Jul 25 2:30:23 2008
I'm using lwIP stack from Adam Dunkels with LPC2368 and LPC2214. He has also written
smaller stack uIP. The later has window of only one packet and therefore requires much
less RAM and code. Ethernet driver for LPC MAC can be found at this forum as it was
already written (correct those bugs before using!).
Just send and receive function will not be enough, since you need to ACK data received
and retransmit undelilevered data (TCP transport). You also need timer and MAC interrupt
functions.
However with UDP things are simpler, at least from stack point of view.
[Non-text portions of this message have been removed]
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: TCP/IP send and receive with LPC2378 - "h.belig" - Jul 28 2:20:30 2008
Thank you for your reply, Bostjan.
I will have a closer look at it.
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: TCP/IP send and receive with LPC2378 - per_martin_l - Jul 28 6:09:52 2008
Hallo
Just thought i would mention that there are hardware bugs in LPC2378....
If this is not compensated for the JTAG will be shut down
and need to be reactivated by a download through the seriel line.
regv = MAC_MODULEID;
if(regv == OLD_EMAC_MODULE_ID) /* Correct a hardware bug in the
mac module according to . */
{
PINSEL2 |= 0x50151105;
}
else
{
PINSEL2 |= 0x50150105;
}
I used "RAW" ethernet frames for communication and it works fine.
"Propriaty software though...."
Make sure to put the speed right, or use auto negotiation on one side
only.(This is a lot slower.)
Not also that the shortes frame is 64 Byte.Regardless of how many
bytes you want to transfer.So you might want to include a length field
when using "Raw" frames.
Using "WIRE SHARK" program is highly recomended!!!
Good luck.
Regards
/Martin
--- In l...@yahoogroups.com, "Glazar, Bostjan"
wrote:
>
> I'm using lwIP stack from Adam Dunkels with LPC2368 and LPC2214. He
has also written smaller stack uIP. The later has window of only one
packet and therefore requires much less RAM and code. Ethernet driver
for LPC MAC can be found at this forum as it was already written
(correct those bugs before using!).
>
> Just send and receive function will not be enough, since you need to
ACK data received and retransmit undelilevered data (TCP transport).
You also need timer and MAC interrupt functions.
>
> However with UDP things are simpler, at least from stack point of view.
> [Non-text portions of this message have been removed]
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: TCP/IP send and receive with LPC2378 - "h.belig" - Jul 29 9:30:14 2008
Hello,
I had a look at the errata sheet at
http://www.standardics.nxp.com/support/documents/microcontrollers/pdf/errata.lpc2378.pdf.
According to that sheet the bug only applies to revision '-', not to
'A' and 'B'.
If you noticed that bug with revision 'A' or 'B', please let us know?
Henry
--- In l...@yahoogroups.com, "per_martin_l"
wrote:
>
> Hallo
> Just thought i would mention that there are hardware bugs in LPC2378....
> If this is not compensated for the JTAG will be shut down
> and need to be reactivated by a download through the seriel line.
>
> regv = MAC_MODULEID;
> if(regv == OLD_EMAC_MODULE_ID) /* Correct a hardware bug in the
> mac module according to . */
> {
> PINSEL2 |= 0x50151105;
> }
> else
> {
> PINSEL2 |= 0x50150105;
> }
>
> I used "RAW" ethernet frames for communication and it works fine.
> "Propriaty software though...."
> Make sure to put the speed right, or use auto negotiation on one side
> only.(This is a lot slower.)
> Not also that the shortes frame is 64 Byte.Regardless of how many
> bytes you want to transfer.So you might want to include a length field
> when using "Raw" frames.
> Using "WIRE SHARK" program is highly recomended!!!
>
> Good luck.
>
> Regards
> /Martin
>
> --- In l...@yahoogroups.com, "Glazar, Bostjan"
> wrote:
> >
> > I'm using lwIP stack from Adam Dunkels with LPC2368 and LPC2214. He
> has also written smaller stack uIP. The later has window of only one
> packet and therefore requires much less RAM and code. Ethernet driver
> for LPC MAC can be found at this forum as it was already written
> (correct those bugs before using!).
> >
> > Just send and receive function will not be enough, since you need to
> ACK data received and retransmit undelilevered data (TCP transport).
> You also need timer and MAC interrupt functions.
> >
> > However with UDP things are simpler, at least from stack point of
view.
> >
> >
> > [Non-text portions of this message have been removed]
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: TCP/IP send and receive with LPC2378 - "h.belig" - Jul 29 9:36:35 2008
Re: TCP/IP send and receive with LPC2378
Hello,
I had a look at the errata sheet at
http://www.standardics.nxp.com/support/documents/microcontrollers/pdf/errata.lpc\
2378.pdf.
According to that sheet the bug only applies to silicon revision '-',
not to 'A' and 'B'.
If you noticed that bug with revision 'A' or 'B', please let us know!
Henry
--- In l...@yahoogroups.com, "per_martin_l"
wrote:
>
> Hallo
> Just thought i would mention that there are hardware bugs in LPC2378....
> If this is not compensated for the JTAG will be shut down
> and need to be reactivated by a download through the seriel line.
>
> regv = MAC_MODULEID;
> if(regv == OLD_EMAC_MODULE_ID) /* Correct a hardware bug in the
> mac module according to . */
> {
> PINSEL2 |= 0x50151105;
> }
> else
> {
> PINSEL2 |= 0x50150105;
> }
>
> I used "RAW" ethernet frames for communication and it works fine.
> "Propriaty software though...."
> Make sure to put the speed right, or use auto negotiation on one side
> only.(This is a lot slower.)
> Not also that the shortes frame is 64 Byte.Regardless of how many
> bytes you want to transfer.So you might want to include a length field
> when using "Raw" frames.
> Using "WIRE SHARK" program is highly recomended!!!
>
> Good luck.
>
> Regards
> /Martin
>
> --- In l...@yahoogroups.com, "Glazar, Bostjan"
> wrote:
> >
> > I'm using lwIP stack from Adam Dunkels with LPC2368 and LPC2214. He
> has also written smaller stack uIP. The later has window of only one
> packet and therefore requires much less RAM and code. Ethernet driver
> for LPC MAC can be found at this forum as it was already written
> (correct those bugs before using!).
> >
> > Just send and receive function will not be enough, since you need to
> ACK data received and retransmit undelilevered data (TCP transport).
> You also need timer and MAC interrupt functions.
> >
> > However with UDP things are simpler, at least from stack point of
view.
> >
> >
> > [Non-text portions of this message have been removed]
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: TCP/IP send and receive with LPC2378 - "Glazar, Bostjan" - Jul 30 8:07:34 2008
If using 'raw' communication over Ethernet, you can just add fixed IP and UDP headers to
the datapacket and you have a TCP/IP compliant communication. Message length and CRC are
also included in the headers.
Note: If you ommit ARP protocol, you should use arp command to bind IP to MAC.
[Non-text portions of this message have been removed]
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: TCP/IP send and receive with LPC2378 - Mark Butcher - Aug 18 15:40:18 2008
--- In l...@yahoogroups.com, "h.belig"
wrote:
>
> Hello,
>=20
> I am using a Keil MCB2300 evaluation board with LPC2378 and Keil's
> =B5Vision3 IDE (evaluation).
> I want to send blocks of data via TCP/IP to another computer and vice
> versa receive data from that other computer.
> Just this, nothing else (regarding ethernet).
>=20
Hi
Take a look at http://www.uTasker.com (or the LPC forum at
http://www.uTasker.com/forum/)
Regards
Mark
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: TCP/IP send and receive with LPC2378 - "h.belig" - Aug 22 8:20:19 2008
Hi,
I downloaded lwIpWep.zip and loaded lwIpWeb.hex to the MCB2300 board.
There was that text on the LCD display but Firefox did not show any
result.
I then adapted the IP address to my LAN and loaded the file again - no
improvement.
Also I did not find that ethernet driver for LPC MAC in the files section.
Bostjan, Could you please advice on the bugs that have to be
corrected? Perhaps you can give me a message id or the subject string
if that issue has been discussed before.
Regards,
Henry
--- In l...@yahoogroups.com, "Glazar, Bostjan"
wrote:
>
> I'm using lwIP stack from Adam Dunkels with LPC2368 and LPC2214. He
has also written smaller stack uIP. The later has window of only one
packet and therefore requires much less RAM and code. Ethernet driver
for LPC MAC can be found at this forum as it was already written
(correct those bugs before using!).
>
> Just send and receive function will not be enough, since you need to
ACK data received and retransmit undelilevered data (TCP transport).
You also need timer and MAC interrupt functions.
>
> However with UDP things are simpler, at least from stack point of view.
> [Non-text portions of this message have been removed]
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )'Sortable' LPC2378/88 pin layout table - Paul Claessen - Sep 27 12:38:56 2008
Maybe this is helpful for some people:
It lets you sort the pin layout table for the LPC2378/88 in various ways.
Useful when you're looking for alternate pins for a certain peripheral or
want to map a physical pin number to a port/pin combination (or vice versa).
http://www.claessen.com/2388
~ Paul Claessen
[Non-text portions of this message have been removed]
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )