KADAK KwikNet MPC5200 User Manual

Fec device driver

Advertisement

Quick Links

KwikNet
MPC5200 FEC
Device Driver
First Printing: November 15, 2004
Last Printing:
Manual Order Number: PN383-9E
KADAK Products Ltd.
206 - 1847 West Broadway Avenue
Vancouver, BC, Canada, V6J 1Y5
User's Guide
Version 3
September 15, 2005
Copyright © 2004 - 2005
Phone: (604) 734-2796
Fax:
(604) 734-8114
®

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the KwikNet MPC5200 and is the answer not in the manual?

Questions and answers

Summary of Contents for KADAK KwikNet MPC5200

  • Page 1 KwikNet MPC5200 FEC Device Driver User's Guide Version 3 First Printing: November 15, 2004 Last Printing: Manual Order Number: PN383-9E Copyright © 2004 - 2005 KADAK Products Ltd. 206 - 1847 West Broadway Avenue Vancouver, BC, Canada, V6J 1Y5 Phone: (604) 734-2796...
  • Page 3 We would be pleased to receive your comments and suggestions concerning this product and its documentation. Your feedback helps in the continuing product evolution. KwikNet MPC5200 FEC Device Driver TECHNICAL SUPPORT KADAK Products Ltd. 206 - 1847 West Broadway Avenue...
  • Page 4 Microsoft, MS-DOS and Windows are registered trademarks of Microsoft Corporation. All other trademarked names are the property of their respective owners. All rights reserved. DISCLAIMER TRADEMARKS are registered trademarks of KADAK Products Ltd. KwikNet are trademarks of KADAK Products Ltd. KwikLook KwikPeg KwikNet MPC5200 FEC Device Driver KADAK...
  • Page 5: Table Of Contents

    Mode 1: Continuous Poll ... Mode 2: Periodic Sampling... Choosing the Mode of Operation... Event Callback Notification... Appendix A. MPC5200 FEC Device Driver Data Sheet KwikNet MPC5200 FEC Device Driver MPC5200 FEC Device Driver User's Guide Table of Contents KADAK...
  • Page 6 This page left blank intentionally. KwikNet MPC5200 FEC Device Driver KADAK...
  • Page 7: Introduction

    The BestComm engine is driven by its private tasks which execute from microcode located in the MPC5200 static RAM memory. These tasks are not to be confused with tasks managed by an RTOS such as KADAK's AMX kernel. Within this document, the term task will be assumed to reference a BestComm task unless otherwise specified.
  • Page 8: Installation

    KNT713 The driver files are installed in the following subdirectories within installation directory KNT303\KN5200E M5200E M5200BC MAKE TOOLXXX TOOLXXX\LIB MPC5200 FEC Ethernet Device Driver consists of the following files: KwikNet M5200E\M5200E.H M5200E\M5200E.C M5200E\M5200EBS.C M5200E\KN5200BC.C M5200E\KN5200BC.H MAKE\KN5200E.MAK README.TXT The following BestComm API and microcode source files are available from Freescale Semiconductor, Inc.
  • Page 9: Configuring The Network

    KwikNet when is started. KwikNet To add a prebuilt MPC5200 Ethernet network interface definition to your Library, use the KwikNet The network parameters are edited on the window is shown below. Follow the directions provided in Chapter 2.4 of the TCP/IP Stack User's Guide.
  • Page 10: Configuring The Device Driver

    Follow the directions provided in Chapter 2.5 of the TCP/IP Stack User's KwikNet Guide. The numeric device driver parameters used to configure the operating characteristics of MPC5200 FEC Ethernet Device Driver are defined in Appendix A. KwikNet KwikNet MPC5200 FEC Device Driver KADAK...
  • Page 11: Making The Kwiknet Mpc5200 Bestcomm Library

    Within directory TOOLXXX used to tailor the library construction process specifically for the generation of the MPC5200 BestComm Library. It is this file which contains the implicit rules for KwikNet compiling source files and creating the library module. Getting Ready Before you start, build your TCP/IP Stack User's Guide.
  • Page 12 Creating the Driver Library MPC5200 BestComm Library must be constructed from within the driver KwikNet installation directory Windows menu, choose the Start Make the driver installation To use Microsoft's NMAKE NMAKE -fKN5200E.MAK "TOOLSET=XXX" "TRKPATH=treckpath" The make symbol TOOLSET the software tools which you are using.
  • Page 13: Special Considerations

    6. Special Considerations 6.1 BestComm Initialization MPC5200 FEC Ethernet Device Driver depends upon the BestComm API KwikNet and microcode supplied by Freescale Semiconductor, Inc. The BestComm microcode must be loaded into memory and initialized once prior to initialization of any of the subsystems that it supports. Each subsystem, such as the FEC, must then start and assume control of the BestComm tasks upon which the subsystem depends.
  • Page 14: Bestcomm Fec Initialization

    BestComm FEC subsystem cannot be reconfigured to meet the revised configuration requested. A custom timing service is implemented in source file MPC5200 FEC device driver. Precise timing is derived from the internal MPC5200 Time Base Register. Procedure bound delay with microsecond precision. This procedure supercedes the crude delay...
  • Page 15: Bestcomm Source Code Modifications

    Note that the BestComm software compiled in this fashion has been exercised using the FEC subsystem only. KwikNet MPC5200 FEC Device Driver BESTCOMM_API.H KN5200E.INC , the equivalent MetaWare keyword.
  • Page 16: Mpc5200 Interrupt Exceptions

    . Doing so resolves the interrupt nesting 0x0500 issue introduced by the non-maskable critical interrupt exception. Also included in the AMX MPC5200 board support module is the AMX Interrupt Identification Procedure which decodes the interrupt source and vectors ch500vd() through the linear AMX Vector Table to the device specific ISP root.
  • Page 17 Exceptions Warning the three MPC5200 exceptions share a common, overlapping region of the AMX Vector Table. The warning can be safely ignored. The MPC5200 FEC device driver provides support for two interrupt sources: the FEC channel and the BestComm FEC subsystem.
  • Page 18: Configuring The Physical Device

    KwikNet can exceed 2 seconds, every time the MPC5200 FEC network interface is opened for use. In a multitasking system, all lower priority activity will be inhibited until the interface is ready or until the timeout interval expires.
  • Page 19: Mode 2: Periodic Sampling

    Mode 2: Periodic Sampling By default, the MPC5200 FEC device driver is configured to use a third, preferred method of operation. The driver uses a timer to periodically sample the PHY, KwikNet watching for the auto-negotiation to complete. The sampling period, the wait interval and an additional post-negotiation delay are all configurable parameters.
  • Page 20: Appendix A. Mpc5200 Fec Device Driver Data Sheet

    Appendix C of that manual KwikNet illustrates the layout of a data sheet used to describe each unique device driver. KwikNet MPC5200 FEC Ethernet Device Driver conforms to the naming conventions KwikNet and operating specifications presented in the Device Driver Technical Reference KwikNet Manual.
  • Page 21: Device Driver

    ® KwikNet Device Driver MPC5200 FEC Ethernet Copyright © 2004 - 2005 KADAK Products Ltd. 206 - 1847 West Broadway Avenue Vancouver, BC, Canada, V6J 1Y5 Phone: (604) 734-2796 Fax: (604) 734-8114...
  • Page 23 MPC5200 Fast Ethernet Channel (FEC) for 10Mbps or 100Mbps Ethernet communication. The driver depends upon the BestComm DMA Engine for transmission and reception of Ethernet frames via the FEC. The driver is provided ready for use on the Motorola Lite5200 Evaluation Board. Configure...
  • Page 24 Configuration Manager can be used to define the following Networks Unit (reserved) Ethernet Address (low 32 bits) Reserved IRQ-BC Since the MPC5200 FEC controller has only one is defined to be 1, thereby enabling the device driver M5200E.H KADAK property page. IRQ-FEC...
  • Page 25 For prebuilt networks, the descriptors will be allocated the first time that KwikNet allocated upon your first call to having added a network interface with a call to MPC5200 FEC Device Driver MPC5200 FEC Ethernet Device Driver Data Sheet (continued)
  • Page 26 Receive buffer alignment Network Parameter File is a multiple of the value KwikNet in header file DD_RCVALIGN KADAK memory allocation method TCP/IP Stack KwikNet is defined by symbols to be 4. M5200E.H KwikNet property page Ethernet M5200E.H MPC5200 FEC Device Driver...
  • Page 27 M5200E.H match your intended MPC5200 use. Alterations will be required in only the rarest of configurations. If you are using AMX PPC , you can use Interrupt Identification Procedure...
  • Page 28 Ethernet device driver. Assume that you require the following configuration for use on the Motorola Lite5200 Evaluation Board. MPC5200 FEC is to be used operating at 10Mbps. Caching must be accommodated. The Ethernet link must operate in half duplex mode.

Table of Contents