AN2700 Freescale Semiconductor / Motorola, AN2700 Datasheet - Page 16

no-image

AN2700

Manufacturer Part Number
AN2700
Description
Basic Web Server Development with MC9S12NE64 and CMX-MicroNet TCP/IP Stack
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Preparing for CMX-MicroNet TCP/IP Stack Development
This development setup should be used until the CMX-MicroNet application is completed. This provides
an easier interface for debugging the application than connecting directly to a real network (because the
development target is isolated). To make the application compatible with a real network, changes should
be required to only the MAC hardware and IP addresses.
Configuring the MAC Hardware and IP Addresses
After the web server is complete, it can be configured to operate on a real network by changing the MAC
hardware and IP addresses to be compatible with the real network. A brief discussion of MAC hardware
and IP addresses is provided in the following sections.
Configuring the MAC Hardware Address
The MAC hardware address is a 48-bit number. Each network device must have a unique MAC hardware
address. MAC hardware address groups are assigned to organizations by the IEEE EtherType Field
Registration Authority.
A valid MAC hardware address for the EVB9S12NE64 should be assigned by the developer. This address
is used by the datalink layer, which is implemented by the MC9S12NE64 integrated Ethernet controller
and the low-level drivers. This can be configured in callback.c . If the device is not connected to a real
network, a random MAC hardware address can be used as long as it is not connected on a network that
has a device with the same 48-bit MAC hardware address.
Configuring the IP Addresses
IP addresses are assigned by a network administrator or a dynamic host configuration protocol (DHCP)
server. These addresses are used by the IP layer of the CMX-MicroNet TCP/IP stack. If the IP addresses
are not correctly configured, the embedded device will not communicate over the network
connection—even if an Ethernet connection can be made.
When developing an application off a real network and on a developer’s PC, the developer is the network
administrator. The developer must create a local network between the PC and the target board. A network
consists of nodes that are on the same network subnet. To set up the subnet for the demo, the developer
must use compatible IP address settings between the developer’s PC and the target board.
16
Basic Web Server with MC9S12NE64 and CMX-MicroNet TCP/IP Stack, Rev. 0.3
Figure 9. Connecting the Evaluation Board to a PC
PC
DEVELOPMENT
PORT (RJ45)
HOST
PARALLEL
NETWORK
SERIAL
PORT
PORT
XCAT5
COMM
BDM
DEVELOPMENT
EVB9S12NE64
TARGET
Freescale Semiconductor

Related parts for AN2700