Home

LAN-026e

image

Contents

1. ea Application Note Start up of the phyCORE ARM7 AT91 Development Kit PCM 014 This Application Note provides instructions on how to run an example program on the phyCORE ARM7 AT91 mounted on the PHYTEC Development Board in conjunction with the freeware OCD Commander utility program and the PHYTEC JTAG adapter JA 001 Please refer to the phyCORE ARM7 AT91 hardware manual for specific information on such board level features as jumper configuration memory mapping and pinout 1 System Description 1 1 Hardware Description The following hardware components are necessary for start up of the phyCORE ARM7 AT91 e phyCORE AT91M55800A with 2 0 mm JTAG connector at X2 part number PCM 014 23111 D e Development Board HD200 5V PCM 997 V2 e 5V DC power supply e JTAG Adapter JA 001 e JTAG Emulator Adapter JA 002 e parallel DB 25 cable All hardware components are included in the phyCORE ARM7 AT91 Development Kit for example KPCM 014 23111 D PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 1 16 oY wee Application Note 1 2 Software Description This Application Note for the phyCORE ARM7 AT91 requires the following software tool e Macraigor OCD Commander This freeware program can be found on the phyCORE ARM7 AT91 Tool CD includ
2. The endian little message will appear in the Command field This refers to how binary values are represented All processors must be designated as either big endian or little endian A little endian representation used by Intel processors and many others has a multibyte integer value with its least significant byte stored at the lowest memory address little end first A big endian representation mostly used by Motorola processors on the other hand places the most significant byte at the lowest memory address The ARM7 compatible AT9IM55800A processor uses little endian representation After running the phyCORE specific macro you are now ready to download a machine readable e f file to the target hardware from your host PC using the JTAG connection PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 14 16 oY wee Application Note e Now click on the Commands pull down menu and select Download e A new dialog box will appear Here you can choose an object file for download e Navigate to the folder PCM 014 Examples HighTec_Gnu RAM Blinky objsn on the PHYTEC Tool CD and select the Blinky elf file for download Look in a objsn gt l Al e File name Blinky Files of type EI S records s19 elf out 7 Cancel J Open as read o
3. http www phytec com LAN 026e_2 9 16 oY wee Application Note e At the end of the software installation you will be prompted to restart your computer Make sure all other applications are shut down and restart your system Setup Complete Setup has finished copying files to your computer Before you can use the program you must restart Windows or your computer C No will restart my computer later Remove any disks from their drives and then click Finish to complete setup You have now successfully installed the OCD Commander on your computer PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 10 16 oY wee Application Note 2 3 Launching the OCD Commander e Reset the target hardware by pressing the Reset button at S2 on the Development Board Release the button after holding it for one or two seconds Note Failure to reset the target hardware prior to connection with the OCD Commander tool will result in incorrect operation e Launch the OCD Commander Starting this utility program should result in the following terminal window OCD Commander c 2000 Macraigor Systems Iof x File Defaults Commands Help eset _step _go_ _hatt_ _reas _cpu status __Macio_ This FREEWARE application shows basic ON CHIP debug It is f
4. T ARMARM7xe e Click on the go button at the top of the OCD Commander window to execute the Blinky elf demo file that has been downloaded to the target hardware Proper execution of the demo program will turn the programmable LED D3 on and off at regular intervals To get help type help in the command line of the OCD Commander and press lt Enter gt Clicking on other commands such as reset step and halt enables debugging of the code PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 16 16
5. Wiggler as the OCD Interface Device 2 as OCD Speed CONNection Dialog Target Processor OCD Interface Device ARM z Wiggler hd JaRM ii Speed Multiple Port number Baud sonf 1 2 3 loco speed 2 Ethernet Addresses P Start with Logging on IV Pop up API errors X Cancel e Also ensure that the correct parallel port parameter is selected for your system This example uses LPT port 1 e Click OK to save these settings eAGgi11 92 168 1 100 Part fi 000 You should now have a connection to the ARM7 target hardware Confirm this by looking at the Target Status panel at the bottom of the OCD Commander window which should indicate that Wiggler on LPT1 communication has been established PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 12 16 ea Application Note e Click the Macro button on the top of the OCD Commander window A new dialog box will appear This enables you to select a macro to configure the applicable Chip Select and other registers of the AT91M55800A that populates the phyCORE ARM7 AT91 with the correct values and wait states required for the demo programs provided by PHYTEC e Select the AT9IM55800A macro located in the Tools OCD_Commander Macro folder on the incl
6. 4 Dev Board phyCORE HD28 5v Figure 1l Default Jumper Settings of the phyCORE Development Board HD200 with phyCORE AT91M55800A e Connect the PHYTEC JTAG Emulator Adapter JA 002 adapter to the phyCORE AT91M55800A module by putting the receptacle connector X3 on JA 002 onto pin header rows X2 on the phyCORE module Make sure that pin 1 denoted by the hash stencil mark on the PCB of X3 on JA 002 is correctly connected to pin 1 on JTAG connector X2 black pad on the connector side of the PCB refer to Figure 2 of the phyCORE AT91M55800A PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 3 16 ea Application Note JTAG Connector X2 Figure 2 JTAG Connector X2 on the phyCORE AT91IM55800A Bottom View e Now plug the 20 pin connector 2 54 mm spacing at the end of the JTAG adapter JA 001 flat band cable into connector X2 on the JA 002 adapter Make sure that pin 1 red cable of the JA 001 flat band cable is correctly attached to pin 1 of the header connector at X2 of JA 002 PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 4 16 eh Application Note wa aAeawaeanaadaad Figure 3 JA 001 and JA 002 C
7. ar what is shown below Use the up T and down J arrows on your keyboard to select EPP or Enhanced Parallel Port under the parallel port This will configure your parallel port for bi directional communication which is required to operate the phyCORE ARM7 AT91 target hardware using the JA 001 Wiggler circuitry and the OCD Commander tool PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 6 16 La Application Note Input Output Ports Menu Serial Port Enable Base Address XXXXx IRQ XXXXX Parallel Port Enable Base Address XXXXx IRQ XxXxX Operation Mode EPP ECP DMA Channel Note There are three standard parallel port settings supported in BIOS The default value is Normal SPP which is the slowest transfer mode designed for output communication such as to a printer There are two faster bi directional modes available the ECP Extended Capabilities Port and EPP Enhanced Parallel Port modes ECP uses the DMA protocol to achieve data transfer rates of up to 2 5 MBit s and provides symmetric bi directional communication EPP uses existing parallel port signals to provide asymmetric bi directional communication and is required by most programming devices that frequently switch input output directions e Select the lt ESC gt key as requ
8. ed in the Rapid Development Kit under Tools OCD_Commander It is also downloadable at www macraigor com 2 Getting Started 2 1 Interfacing the phyCORE ARM7 AT91 to a Host PC Connecting the phyCORE ARM7 AT91 mounted on the Development Board to your computer is simple e If the phyCORE module is not already pre installed mount it pins down onto the Development Board s receptacle footprint X6 as shown in the figure below Ensure that pin 1 of module designated by the hash stencil mark matches pin 1 of the receptacle on the Development Board Ensure that there is a solid connection between the module s pins and the Development Board receptacle Also take precautions not to damage the connectors when the phyCORE is removed from and inserted onto the Development Board PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 2 16 oY wee Application Note e Ensure proper jumper settings on the phyCORE Development Board as shown in Figure 1 a CUONOLOOOTIOIII VIAMI IVTM AO DIDIOIOOODIOIIIIIOIIIICIDIIIOIOITI IDILI ETOD i 6 u a P12 of Sele X6 lal 55 ZL ath aac weal o lt OARIOIDAOMIOIIMIOQIIMIDIAL MOIO VINIM UIM UII ONIOUIUVEUE EL CUOU AECL UU HOUTA UL Phytec Messtechnik GmbH 1179
9. ired to exit out of the BIOS menu structure and resume boot up of Windows PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 7 16 oY WES Application Note e Using the included 5V DC power adapter connect the power socket X1 on the phyCORE module to a power supply refer to Figure 4 for the correct polarity Polarity 4 5 VDC camarin gt 500 mA 3 5 mm 7 GND Figure 4 Power Connector e The red power LED D2 located next to the power socket at X1 should light This indicates that proper voltage is supplied to the phyCORE Development Board combination which is also referred to as target hardware within this document The phyCORE ARM7 AT91 should now be properly connected via the Development Board to a host PC and power supply You are now ready to use the OCD Commander to establish communication between the host PC and target hardware 2 2 Installing the OCD Commander Software The Macraigor Systems OCD Commander is a freeware utility program used for downloading application code to a target hardware platform and demonstrating basic debugging features This software is included on the Tool CD accompanying the phyCORE AT91M55800A Rapid Development Kit or can be downloaded at www macraigor com e Insert the PHYTEC Tool CD into your host PC s CD ROM d
10. nly e Click on the Open button to start the download of the Blinky application e Download of the file can be viewed within the terminal window Successful download of the Blinky elf file will result in the following text appearing in the terminal window gt DOWNLOAD PC set to starting address 0x04000060 Blinky elf downloaded 5692 bytes in 0 minutes 1 264 seconds PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 15 16 oY wee Application Note Please note that the download time will differ from system to system OCD Commander c 2000 Macraigor Systems O x File Defaults Commands Help eset _step_ _go_ _hatt_ _regs _cpu status __Macto_ gt gt Init CSRO Register gt word OxffeG6666 6x61662529 gt gt Init CSR1 Register gt word GxffeG6664 6x646634A5 gt gt Init CSR2 Register Unknown command gt word OxffeGG068 6x2663431 gt gt Remap Command gt word OxffeG6626 6x61 gt gt Supporting little endian format gt endian little Little Endian set for WORD and DASH commands gt gt gt DOWNLOAD PC set to starting address 6x64666066 Blinky elf downloaded 5692 bytes in 6 minutes 1 264 seconds ba Command DOWNLOAD DOWNLOAD download filename inDEBUG Wiggler on LPT 1
11. onnected to the phyCORE Module e Connect the 25 pin end of the JTAG adapter JA 001 to the parallel port of your host PC using the included DB 25 cable e Make sure that the mode of the parallel port on your host PC is set to EPP Configuration of the EPP mode must be done in the BIOS setup of the host PC by selecting the lt F1 gt function key while the operating system is booting up The function key used to enter the System BIOS depends on the target computer system Please consult your User s Manual for details PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 5 16 eh Application Note e This will result in appearance of the following BIOS menu prior to start up of Windows BIOS Configuration Main Menu Select a Menu System Information Video Information Disk Drives gt Input Output Ports Power Management Startup Options Model Information Date and Time Advanced Options T lt CR gt lt TAB gt to select or lt PgUp gt lt PgDn gt to modify lt ESC gt to return to Main Menu e Use the up and down J arrows on your keyboard to select Input Output Ports using the lt ENTER gt key e This advances you to the Input Output Ports menu Depending on the version of BIOS installed on your host PC this window should appear simil
12. or use with MACRAIGOR SYSTEMS interfaces For FASTER Interfaces and more see our web site wuu macraigor com Quick Hints 1 All parameters MUST be separated by spaces 2 Hex values start with 6x or 3 To force decimal end value with T 4 All numbers should start with 6 9 5 ALWAYS look at the HINT BAR on bottom of screen 6 Type HELP for list of commands Examples GPR 1 6x1234 s sets GPR 1 PC 6ff60260 ssets PC BYTE 6x666686 s shows byte value at location WORD 6x66606 6123 swrites a word value Command STATUS Wiggler on LPT 1 T ARMARM ix PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 11 16 oY wee Application Note The CONNection Dialog window should also appear when starting the OCD Commander If this window does not appear automatically it can be invoked using the Commands pull down menu All commands can be accessed from the top of the OCD Commander window either via pull down menus or by clicking the available buttons reset step go macro Additional status display bars will appear below the Command field providing information about the current connection and target system e Set the following connection parameters within the CONNection Dialog window ARM and ARM7xx as Target Processor
13. rive e Browse to the Tools OCD_Commander folder e Run the ocd_dbgr exe program PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 8 16 oY wee Application Note e The following pop up window will appear InstallShield Self extracting EXE Xi This will install OCD Commander Do you wish to continue e Click on Yes to continue installation e The OCD Commander Setup installation wizard will start and the following Welcome window will appear Welcome xj Welcome to the OCD Commander Setup program This program will install OCD Commander on your computer It is strongly recommended that you exit all Windows programs before running this Setup program Click Cancel to quit Setup and then close any programs you have tunning Click Next to continue with the Setup program WARNING This program is protected by copyright law and international treaties Unauthorized reproduction or distribution of this program or any portion of it may result in severe civil and criminal penalties and will be prosecuted to the maximum extent possible under law e Click on Next and follow the instructions given in the setup windows PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913
14. uded PHYTEC Tool CD Look in a Macros al c 4TS1M558004 mac File name Jat 91M558004 Files of type macros mac ki Cancel Zi The macro will automatically load and yield the following in the OCD Commander terminal window Loading and execution of the macro can be viewed in the center portion of the OCD Commander window which is a terminal program that displays communication between the host PC and PHYTEC target hardware PHYTEC Technologie Holding AG 2003 Europe Support Hotline 49 6131 9221 31 http www phytec de North America Support Hotline 1 800 278 9913 http www phytec com LAN 026e_2 13 16 ea amp Application Note OCD Commander c 2000 Macraigor Systems lol x File Defaults Commands Help reset step go halt regs cpu status Macro gt Reg 2 6x60 gt Reg 3 6x60 gt Reg 4 6x60 gt Reg 5 6x66 gt Reg 6 6x66 gt Reg 7 6x66 gt Reg 8 6x60 gt Reg 9 6x60 gt Reg 16 6x66 gt Reg 11 6x66 gt Reg 12 6x66 gt Reg 13 6x66 gt Reg 14 6x66 gt Reg 15 6x66 6x16 gt word Oxffebb666 6x61662529 gt word OxffeGG664 6x6468634A5 gt Init CSR2 Register UNKNOWN COMMAND gt word Oxffebb668 gt word Oxffeb6626 gt endian little Little Endian set for WORD and DASH commands 6x2 663431 6x 61 bg Command endian little Little or Big inDEBUG Wiggler on LPT 1 1 ARM7aux

Download Pdf Manuals

image

Related Search

LAN 026e len0268 driver lan 26awg lan 26 vogar

Related Contents

SSRO User Guide for Strategic Industry Capacity Report  NGS CLB Kandinsky 16"  JVC AV-20N83 User's Manual  Electrolux ERN 1573 User's Manual  Eglo 84002  Microsoft Wireless Laser Desktop 6000  Corporate Telephony Toolbar User Guide  

Copyright © All rights reserved.
Failed to retrieve file