AN2700 Freescale Semiconductor / Motorola, AN2700 Datasheet - Page 33

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
_MC9S12NE64_BANKED.prm.h
An excerpt of the source code for _MC9S12NE64_BANKED.prm is provided. The code shows
configurations for the EMAC Ethernet buffer allocation. The RAM segments definition should match the
corresponding configurations of BUFMAP in emac_fifo_cfg.h .
Excerpt from _ MC9S12NE64_BANKED.prm:
SEGMENTS
//
//
//
//
//
CMX-MicroNet Project Configuration to Optimize the Stack Solution
When developing a web server, there are several strategies to follow with the project to ensure that the
code size of the solution does not exceed the available resources:
Minimize Web Page Content
A fully featured web page for an application uses valuable FLASH and RAM resources. Before
implementation, it is important to understand the resources that the application will require and balance
them with the web page features. Each web page graphic, for example, can easily require 6 to 8 Kbytes
of FLASH.
Modify mnconfig.h to Use Only Required Network Protocols
See the
not be enabled in the stack. A complete TCP/IP stack consists of a large set of networking protocols that
require large memory and CPU resources. For resource-constrained TCP/IP stack implementations, such
as implementing a TCP/IP stack on an 8-/16-bit embedded system, it is not always best to implement the
complete set of networking protocols.
Freescale Semiconductor
RAM
RAM
RAM
RAM
RAM
Minimize web page content
Modify mnconfig.c to use only required network protocols
Set buffers to appropriate values
mnconfig.h
Basic Web Server with MC9S12NE64 and CMX-MicroNet TCP/IP Stack, Rev. 0.3
= READ_WRITE 0x2180 TO 0x3FFE;
= READ_WRITE 0x2300 TO 0x3FFE;
= READ_WRITE 0x2600 TO 0x3FFE;
= READ_WRITE 0x2C00 TO 0x3FFE;
= READ_WRITE 0x3200 TO 0x3FFE;
section for details. If using Ethernet without DHCP or BOOTP, these protocols should
CMX-MicroNet Project Configuration to Optimize the Stack Solution
/* BUFMAP = 0 (128 byte) */
/* BUFMAP = 1 (256 byte) */
/* BUFMAP = 2 (512 byte) */
/* BUFMAP = 3 (1K) */
/* BUFMAP = 4 (1.5K) */
33

Related parts for AN2700