<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Ethernet Programming</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/29672/ethernet-programming</link><description> 
Hi 

 
I am new to the ARM platform. I have practiced few of the example
programs such as blinky, uart, adc, timer. My next phase is
programming the ethernet port and sending packets using TCP/IP. Can
someone please suggest me how to move forward, as</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Ethernet Programming</title><link>https://community.arm.com/thread/106610?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2012 23:50:50 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:49f94819-0b82-44ac-8908-fd4862db51f4</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Did you actually go throught them?&lt;/p&gt;

&lt;p&gt;
I think you need to spend a bit more time in studying the basic
principles of TCP/IP networking!&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.lmgtfy.com?q=TCP/IP"&gt;http://www.lmgtfy.com?q=TCP/IP&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;What is the IP address and MAC address of LPC2368?&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
These really are basic questions that should be covered by any
book or tutorial on the subject!&lt;/p&gt;

&lt;p&gt;
The MAC address is (or should be) a fixed property of the
hardware. The LPC2368 &lt;b&gt;documentation&lt;/b&gt; will tell you if it is
embedded withing the microcontroller; otherwise, your design must
include some way to store it.&lt;br /&gt;

&lt;a href="http://en.wikipedia.org/wiki/Media_Access_Control#Addressing_mechanism"&gt;en.wikipedia.org/.../Media_Access_Control&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
The IP address is a property of the software stack. For a trivial,
beginner&amp;#39;s example, it could be hard-coded - but then it&amp;#39;s up to
&lt;b&gt;you&lt;/b&gt; to ensure that it doesn&amp;#39;t clash with anything else on the
network (shouldn&amp;#39;t be a problem if you&amp;#39;re just using a direct
connection to a single PC).&lt;br /&gt;
For a &amp;quot;proper&amp;quot; project, it should at least be configurable -
preferably automatically assigned; eg, by DHCP.&lt;br /&gt;
&lt;a href="http://en.wikipedia.org/wiki/IP_address"&gt;en.wikipedia.org/.../IP_address&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;I loaded the ethernet program&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
What ethernet program?&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;i have an wired connection to the PC&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Are you sure that it is &lt;b&gt;correctly&lt;/b&gt; wired?&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot; how do i ping the device&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Exactly the same way that you&amp;#39;d ping anything else!&lt;/p&gt;

&lt;p&gt;
The whole point of using standard protocols like TCP/IP is that
they work the same irrespective of the underlying hardware or
software!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ethernet Programming</title><link>https://community.arm.com/thread/84818?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2012 23:32:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:29e54a29-08d8-4ce7-8e84-7253e205fa68</guid><dc:creator>SANJEET SANEB</dc:creator><description>&lt;p&gt;&lt;p&gt;
the ip address is 192.257.5.27. and the mac address is
00-75-21-00-4G-47.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ethernet Programming</title><link>https://community.arm.com/thread/80767?ContentTypeID=1</link><pubDate>Mon, 03 Dec 2012 22:34:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:006b4dff-3498-4327-b4f1-da7f8688a567</guid><dc:creator>Naresh Birje</dc:creator><description>&lt;p&gt;&lt;p&gt;
What is the IP address and MAC address of LPC2368?&lt;/p&gt;

&lt;p&gt;
Where can i find them?&lt;/p&gt;

&lt;p&gt;
I loaded the ethernet program using flash magic. i have an wired
connection to the PC. how do i ping the device and check if its
working fine?&lt;/p&gt;

&lt;p&gt;
Please do help me out.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ethernet Programming</title><link>https://community.arm.com/thread/80763?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2012 00:30:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0f51ee29-1788-40a9-8ba0-5371c62ad256</guid><dc:creator>Naresh Birje</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks for the reply Andrew. I will surely go through them and try
to finish the tasks.&lt;/p&gt;

&lt;p&gt;
I have worked on 8051 and PIC24 series earlier but not on
networking concepts.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ethernet Programming</title><link>https://community.arm.com/thread/67875?ContentTypeID=1</link><pubDate>Mon, 19 Nov 2012 23:37:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5318a37d-c8b2-48b8-b148-841bc2489215</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Do you have any experience with any other platform?&lt;/p&gt;

&lt;p&gt;
In particular, do you have any experience with any other
&lt;b&gt;embedded &lt;i&gt;microcontroller&lt;/i&gt;&lt;/b&gt; platform?&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;My next phase is programming the ethernet port and sending
packets using TCP/IP&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
So what you need is a so-called &amp;quot;TCP/IP Protocol Stack&amp;quot; - or just
a &amp;quot;&lt;b&gt;TCP/IP Stack&lt;/b&gt;&amp;quot; for short.&lt;/p&gt;

&lt;p&gt;
There are many TCP/IP Stacks available - both free and commercial
- for microcontrollers like this.&lt;br /&gt;
&lt;b&gt;uIP&lt;/b&gt; and &lt;b&gt;LwIP&lt;/b&gt; are two common ones - google them.&lt;/p&gt;

&lt;p&gt;
I believe that NXP also offer &lt;b&gt;NicheLite&lt;/b&gt; as a free stack for
use on their chips - it is a &amp;quot;lite&amp;quot; version of the InterNiche
commercial stack. See the &lt;b&gt;NXP&lt;/b&gt; site for details.&lt;/p&gt;

&lt;p&gt;
For more &lt;b&gt;NXP&lt;/b&gt;-specific info, see: &lt;a href="http://www.lpcware.com"&gt;http://www.lpcware.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Keil also offer their own commercial stack.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;Can you suggest me with some links/code/books&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
TCP/IP is a set of &lt;b&gt;standard&lt;/b&gt; protocols - so any text on the
subject will do!&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/links/tpl/tcpip.asp"&gt;http://www.keil.com/links/tpl/tcpip.asp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;

&lt;a href="http://compnetworking.about.com/od/tcpip/TCPIP_Transmission_Control_Protocol_Internet_Protocol.htm"&gt;compnetworking.about.com/.../TCPIP_Transmission_Control_Protocol_Internet_Protocol.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
BSD Sockets Primer: 
&lt;a href="http://www.cis.temple.edu/~ingargio/old/cis307s96/readings/docs/sockets.html"&gt;www.cis.temple.edu/.../sockets.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Windows Sockets Primer:&lt;br /&gt;
&lt;a href="https://burks.bton.ac.uk/burks/pcinfo/progdocs/wsocktut/winsock.htm"&gt;burks.bton.ac.uk/.../winsock.htm&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>