📄 target.ref
字号:
\" ads827x/target.nr - Motorola MPC827XADS target specific documentation\"\" Copyright 1984-2003 Wind River Systems, Inc.\"\" modification history\" --------------------\" 01a,18dec03,dtr Adapted from ADS826x BSP target.nr\"\TITLE ads827x - Motorola MPC827XADSNAME`Motorola ADS827X - HIP7'INTRODUCTIONThis reference entry provides board-specific information necessary to runVxWorks for the ads8272 BSP.The BSP will work with the rev PROTOTYPE of the ADS8272 board.Board Switch SettingsThe board must have the switch and jumpers set to appropriate values beforesoftware can be loaded into the memory, or before flash memory can be programmedas described below. 1. Setting the board Jumpers & Switches: In order to get the board running with the default configuration, the switches can be set as follows: NOTE: The MODCK and MODCKH switches affect the hard reset configuration word that the processor reads during hard reset time. The bsp reads internal SIU registers and obtains all the necessary pll multiplier and divider values to self configure the clock, CPM and baudrate clocks. The following settings for MODCK and MODCKH are the default values as specified in the board manual. The user is free to pick and choose any acceptable combination of these values that will allow the core frequencies to not exceed the allowable ranges as described in the MCP8260 manual.\ts Dip SW1 | Dip SW2 | Dip SW4 | - | | | | | | | | SWOPT0 ON | Reserved ON | MODCKH0 OFF | SWOPT1 ON | PCI DLL OFF | MODCKH1 ON | SWOPT2 ON | PCI Arbiter ON | MODCKH2 OFF | Reserved ON | BOOT SOURCE ON | MODCKH3 ON | | | | PCIMODCK ON | | | | MODCK1 ON | | | | MODCK2 OFF | | | | MODCK3 OFF | \te Jumper JP9 2-3 BCSR is hard reset word source (factory default)BOOT ROMSNo VxWorks Boot ROM is provided with this BSP release. Nevertheless VxWorksboot code is working if downloaded into the SIMM Flash ROM.VxWorks boot code can be programmed in to Flash using one of the followingmethods:\sh \sh Using visionProbe with visionClick or WIND POWER IDE1. Setting the board Jumpers & Switches: In order to get the board running with the default configuration, the switches need to be set as follows:2. Creating a bootrom_uncmp.hex: 2.1 Launch Tornado II, go to the "Build" menu and choose the option "Build Boot ROM...". 2.2 The "Build Boot ROM" window will popup, in the "Select a BSP:" column choose the "ads827x", and in the "Select an Image to build:" column, choose "bootrom_uncmp.hex" and compiler of choice, and press the "OK" button. 2.3 Once the build process finish successfully (You will see "Done" in the "Build window" without error), you will find the file "bootrom_uncmp.hex" in the BSP directory "$(WIND_BASE)/target/config/ads827x".3. Programming bootrom_uncmp to the MPC8272ADS FLASH: Support for Hip 7 part is available in visionClick 7.11.10 and also in WIND POWER IDE 1.2 3.1 Using visionCLICK: 3.1.1 Connect the JTAG interface cable from the visionPROBE II or visionICE II into the MPC8272ADS board JTAG (P21 The JTAG/COP Port) connector, and power it on. Once all the connections have been made, power up the MPC8272ADS board and start visionCLICK on the host. 3.1.2 Configure the visionCLICK project: The "Welcome To visionCLICK" window will appear. In this window press on the "Configure" button, this will invoke the "PROJECTS/LOAD" window. In this window press on the '+' left of the "PowerPC_C_Demo@0x00800400.prj" project to expand the project which will show you the current project configuration. Point with the mouse cursor on the "Microprocessors" option and right-click to choose "PowerPC->MPC82xx->MPC8275" Verify that the "Target Control" option points to visionPROBE for visionPROBE II, or visionICE for visionICE II. Switch to the "Communications" TAB and verify that the "Normal Port/Rate" & "Download Port/Rate" is set to the correct LPT port if you are using visionPROBE II or enter the emulator IP address if you are using visionICE Save the project by clicking the "Save" button at the bottom of the window. Click the "Activate" button to send the project configuration to the attached hardware debugger. 3.1.3 Program visionPROBE II / visionICE II with the proper register setting for the MPC8272ADS board: The register file is delivered for this board with the BSP. Go to the "Tools" menu and select the "Log Output/Playback Scripts" option. The "Record / Playback" dialog box will popup. Go to the "Playback Commands From File" group and click the "Browse" button. Navigate to the location of the register file: "ads8272.vsh". After choosing the register file press on the "Open" button to confirm the selected reg file. This will return you back to the "Record / Playback" dialog box. Click the "Start" button located in the same group. In the "Terminal" window you can see that visionCLICK is running the script. When the script is finished running, you will get back the ">BKM>" or the ">ERR>" prompt. 3.1.4 Get into Background Mode: At the "Terminal" window, execute the "IN" command to reset the board and initialize it with the register settings. >ERR>IN *********************************************************** VisionICE II Initialization Sequence. Copyright WIND RIVER Corp. 2002 *********************************************************** Support Expires..... 1/12/03 Target Processor..... MPC8275 VisionICE II Group ID#= 0 VisionICE II Serial#= N2201100 Firmware=vn2.0a Type CF for a Menu of Configuration Options Using Front PANEL as BDM source Initializing Background Debug Mode..............Successful >BKM> If initialize properly, you should see >BKM> prompt at the terminal window as shown above. Ensure that the register file have been loaded to both the emulator and the target. Verfiy the values for "OR0", "BR0", "OR2" and "BR2" shown in the Register window under "MEMC" group matches the target. To find out a register value in the target, in "Terminal" windows, type "DR name_of_register". For e.g. >BKM>DR OR0 The proper values are: OR0 = FF800876 BR0 = FF801801 OR1 = FFFF8010 BR1 = 04501801 OR2 = FF002CC0 BR2 = 00000041 3.1.5 Setting the Flash Chip Select: 3.1.5.1 Once the ">BKM>" prompt appears we need to verify that the Flash chip select configuration is correct. To do this, type "CS" at the >BKM> prompt in the "Terminal" window and press Enter. The first line ("CS0") is for the Flash chip select. Under the "PS" (for Port Size) column for CS0, check that the number is "32". If configured properly, goto Section 3.1.6. If not configured properly, follow the steps below to change it: 3.1.5.2 Type "CS CS0" in the "Terminal" window and press Enter. >BKM>CS CS0 3.1.5.3 Press enter until you get the following line: (0-3) = 64, 8, 16, 32 bits | Port Size=32 Bits > Enter 3 for "32" bits and keep pressing Enter until you get to the ">BKM>" prompt again. 3.1.5.4 Once the prompt appears, reset the board and the emulator with the following command: >BKM>IN After you get the ">BKM>" prompt, continue with the instructions in the next section. 3.1.6 Converting bootrom_uncmp.hex to bootrom_uncmp.bin: 3.1.6.1 In visionCLICK, choose "Convert Object Modules" from the "Tools" menu. The "CONVERT BINARY AND SYMBOL OBJs" window will appear. Go to the "Select Input Object Module To Convert" group and navigate to the file "bootrom_uncmp.hex" located in "$(WIND_BASE)/target/config/ads827x 3.1.6.2 In the group "Binary Downloadable Objects Modules" check the "Create Flat BIN File For Flash Programming". "In Range Of 0x" edit box, enter "0" for the start address, and in the "To 0x" edit box, enter "FFFFFFFF". 3.1.6.3 Make sure that none of the other check boxes are checked. Press the "Convert" button. Close the terminal window when the conversion completes. 3.1.7 Programming the MPC8272 Flash: In visionCLICK, select "Program Flash Devices" from the Tools pull-down menu and this will invoke the "TF FLASH PROGRAMMING" window. 3.1.7.1 Click the "Select" in the "Flash Card or PC Host File Name and Path" group. The "CHOOSE A FILE FROM HOST PC" window will appear. In the edit box enter the full path of the file "bootrom_uncmp.bin", or use the "<--Browse" button to navigate to the file. Go to the "+/- Bias" group and enter "FFF00000" in the edit box. Click the "OK" button. This will bring you back to the "TF FLASH PROGRAMMING" window. 3.1.7.2 In the "Programming Algorithm" group, click the "Select" button, and select the following Flash devices: "Intel 28F016/16S (2048 x 8) 4 Devices" 3.1.7.3 Set the base address of the Flash to "FFF00000", check the "Erase All" radio button. Set the start address of "Available RAM Workspace" to "00005000" with the "Bytes Of Target RAM Required" set to "5000". 3.1.7.4 Press the "Erase and Program" button. 3.1.7.5 Now the Flash memory is programmed with the new boot program.\sh Jumpers on PROTOTYPE board revisionThe baud rate generator assumes a 100 MHz system clock and aCPM multiplication factor of 2. Although the PROTOTYPE boardsupports reading the Hard Reset Configuration Word from Flashor from the BCSR, the currently shipping PROTOTYPE Board has aprocessor XPC8260 rev. 0.2, which does not support readingthe Flash at Power-on or Hard reset and so must be set touse BCSR. FEATURES\sh Supported Features (PROTOTYPE board revisions)SCC1 and SCC4 as a UARTFCC1 FCC2 as an Ethernet device supporting 10BaseT and 100BaseT protocolInterrupt ControllerSystem ClockBaud Rate Generators as required for SCC1 and SCC464MB on board SDRAMDMA as required only for SCC1, SCC4, FCC1 & FCC2Auxiliary clock and timestamp clock8 MByte Flash module (16 and 32 MByte configurations have not been tested)Flash read and write capabilityInstruction and Data cachesOn-chip PCI bridge for 82xx chips.PCI Bridge Direct DMA PCI Error Handling \sh Unsupported Features (PROTOTYPE board revisions)virtual DMAParallel PortsBaud Rate Generators not used by supported devicesSPIReset capability or optionsSCC1 and SCC4 in any mode other than UARTSCC2 and SCC3ATM, Transparent, or HDLC protocols on FCC1 and FCC2FCC3MCC1 and MCC2SMC1 or SMC2USB Any of the eight TDM interfacesSupport for the two 96 DIN connectors(Voyager Tools Board connector and Expansion connector)which bring out all pins on the MPC8272 chip\sh Feature InteractionsNone knownHARDWARE DETAILSThis section documents the details of the device drivers and boardhardware elements.\sh Devices
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -