📄 target.nr
字号:
'\" t.so wrs.an.\" ads8260/target.nr - Motorola MPC8260ADS target specific documentation.\".\" Copyright 1984-2002 Wind River Systems, Inc..\".\" modification history.\" --------------------.\" 01h,17Oct01,jrs upgrade to veloce.\" update SYSCLK freq for 33 and 66MHz selections.\" configuration SYSCLK oscillator for 33, 40, and 66MHz.\" added MODCK and MODCKH settings for 33, 40, and 66MHZ.\" (SPR #66989).\" 01g,23aug01,dgp change manual entry to reference entry per SPR 23698.\" 01f,21apr00,stv changes regarding programming start flash address (PILOT) .\" 01e,05mar00,mtl changes for PILOT rev of ads8260 board.\" 01d,04oct99,ms_ fixed header to give correct file name for online man page.\" 01c,14sep99,ms_ updated for fcs release.\" 01b,19jul99,ms_ updated for beta release.\" 01a,21feb99,ms_ adapted from template version 01e.\".\".TH "ads8260" T "Motorola MPC8260ADS" "Rev: 04 Dec 2001" "VXWORKS REFERENCE MANUAL".SH "NAME".aX "Motorola MPC8260ADS".SH "INTRODUCTION"This reference entry provides board-specific information necessary to runVxWorks for the ads8260 BSP. The BSP will work with the rev PILOT of the ADS8260 board.The default rev is PILOT, which is turned on by the macro BOARD_REV_PILOTin config.h..SH "BOOT ROMS"No 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:.SS "1. Using Macraigor Raven"Using the Macraigor Raven (www.macraigor.com), and their OCD Commanderhost-based software a bootrom image can be read from the host and programmed into Flash Rom, as detailed below:On the host, prepare a hex image of the bootrom. On a Unix host:.CS make bootrom_uncmp.hex.CEInstall the Raven connector through a parallel port onto your host, andpower it on. Connect the COP interface cable from the Raven into theADS board's JTAG/COP connector.Once all the connections have been made, power up the ADS board and start theOCD Commander executable on the host. 1. Execute the reset command to initialize the board:.CS > RESET.CE2. Click FLASH PGM. Wait for the flash programmer to come up.3. Click Program. Wait for the programming menu.4. Click Browse and select the bootrom_uncmp.hex file.5. Select "Erase Target Flash Sectors Before Programming".6. Change the "Start Programming at Flash Address:" value to 0xfff00000. 7. Click Program. The software will erase the flash, then program it,and finally will say Program/Verify Complete..SS "2. Using vxWorks"Booting VxWorks as detailed below, and then using VxWorks to read thebootrom image from a host and to program it into Flash RomThis is explained below:1. Boot VxWorks as detailed below2. Configure and start the Tornado target server on the host.3. On the host, prepare a hex image of the bootrom. On a Unix host:.CS make bootrom_uncmp.bin cp bootrom_uncmp.bin /tmp ls -l /tmp/bootrom_uncmp.bin.CENote the number of bytes given by the last step4. Using a VxWorks shell, read and program the image. Replace the numberof bytes (359044 below) with the size of your image. Make sure the allocatedbuffer is large enough:.CS sysFlashErase 0 fd1 = open ("/tmp/bootrom_uncmp",2,0) p1 = malloc (0x100000) read (fd1, p1, 359044) sysFlashWrite (p1, 359044, 0,0).CENote that the offset on the PILOT rev board will have to be (0xfff00000 - FLASH_ADRS). See ROM considerations below.5. At this point the VxWorks bootrom is programmed into Flash rom. Resettingthe board should yield the familiar VxWorks boot screen..SS "Jumpers on PILOT board revision".LPThe baud rate generator assumes a 40 MHz or 66 MHz system clock and aCPM multiplication factor of 2. Although the PILOT boardsupports reading the Hard Reset Configuration Word from Flashor from the BCSR, the currently shipping Pilot 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. This setting and the CPM multiplication factor isprogrammed on DS1, as follows:.TScenter;l ll l.Label Position_FLASH/BCSR OffMODCKH 0 OnMODCKH 1 OffMODCKH 2 OnMODCKH 3 OffMODCK 1 OffMODCK 2 OffMODCK 3 Off.TEIf the system clock is 33 MHz then the DIP switch MODCKH 1 (position 3)should be set to Off.On revision PILOT of the ADS8260 board, there is a new JTAG machine insertedin front of the MPC8260's COP/JTAG port to provide fast download capability for the ADS. Via J5 it is possible to bypass the new JTAG machineto be compatible with the ENG rev of the board. In the tested configuration,a jumper is placed between positions 1-2 of J5 to enable the new JTAGmachine. .SH "FEATURES".SS "Supported Features (PILOT board revisions)"SCC1 and SCC2 as a UARTFCC2 as an Ethernet device supporting 10BaseT and 100BaseT protocolInterrupt ControllerSystem ClockBaud Rate Generators as required for SCC1 and SCC216 MByte SDRAM DIMM on 60x bus (32 and 64 MByte configurations have not been tested)DMA as required only for SCC1, SCC2, and FCC2Auxiliary clock and timestamp clock8 MByte Flash module (16 and 32 MByte configurations have not been tested)Flash read and write capabilityInstruction and Data caches.SS "Unsupported Features (PILOT board revisions)"virtual DMAParallel PortsBaud Rate Generators not used by supported devicesSPII2C4MByte SDRAM on local bus. Reset capability or optionsSCC1 and SCC2 in any mode other than UARTSCC3 and SCC4ATM, Transparent, or HDLC protocols on FCC2 FCC1 and FCC3MCC1 and MCC2SMC1 or SMC2Any of the eight TDM interfacesSupport for the PCI bridge (hardware not available yet)Support for the L2 cache (hardware not available yet)Support for the two 96 DIN connectors (Voyager Tools Board connector and Expansion connector) which bring out all pins on the MPC8260 chip.SS "Feature Interactions"None known.SH "HARDWARE DETAILS"This section documents the details of the device drivers and boardhardware elements..SS "Devices"The chip drivers included are: m8260Flash.c - flash memory driver m8260Sio.c - serial driver m8260IntrCtl.c - interrupt controller driver m8260Timer.c - timer driver motFccEnd.c - FCC Ethernet END driver miiLib.c - Media Independent Interface libraryThe BSP configures both SCC1 and SCC2 as UART devices. SCC1 is used as a console device.FCC2 is used as an ethernet port. .SS "Memory Maps".LPThe following table describes the ads8260 default memory map:.TS Eallbox expand;lf3 lf3 lf3 lf3l l l l ..ne 6.sp .5Start Size End Access to_0x0000_0000 16MB 0x00FF_FFFF SDRAM DIMM on 60X bus0x0100_0000 48MB 0x03FF_FFFF T{Unused (partially used when optional 32MB DIMMis installed, and fully used when optional 64MB DIMMis installed in place of standard 16MB DIMM)T}0x0400_0000 4MB 0x043F_FFFF T{Soldered SDRAM on local (1) bus (unsupported)T}0x0440_0000 1MB 0x044F_FFFF Unused0x0450_0000 32KB 0x0450_7FFF T{Board Control and Status Registers(BCSR0 through BCSR7 on PILOT revision)T}0x0450_8000 0x045F_FFFF Unused0x0460_0000 32KB 0x0460_7FFF ATM (unsupported)0x0460_8000 0x046F_FFFF Unused0x0470_0000 64KB 0x0471_FFFF T{MPC 8260 Internal Memory (see MPC8260 PowerQUICC II User's Manual, Chapter 3, Memory Map, andChapter 13, CPM Overview, for further details, and see Parameter Ram below)T}0x0472_0000 0xFCFF_FFFF Unused0xFD00_0000 32MB 0xFFFF_FFFF Flash SIMM (size optional).TE.LPThe following table describes the ads8260 default usageof the MPC8260's internal Parameter Ram, sometimes also called Data/Parameter Ram or DPRAM:.TS Eallbox expand;lf3 lf3 lf3 lf3l l l l ..ne 6.sp .5Start Size End Description_0x0470_0000 8 bytes 0x0470_0007 SCC1 Receive Buffer Descriptor0x0470_0000 2 bytes 0x0470_0001 SCC1 Receive Buffer Status0x0470_0002 2 bytes 0x0470_0003 SCC1 Receive Buffer Length0x0470_0004 4 bytes 0x0470_0007 pointer to SCC1 Receive Buffer 0x0470_0008 8 bytes 0x0470_000F SCC1 Transmit Buffer Descriptor0x0470_0008 2 bytes 0x0470_0009 SCC1 Transmit Buffer Status0x0470_000A 2 bytes 0x0470_000B SCC1 Transmit Buffer Length0x0470_000C 4 bytes 0x0470_000F pointer to SCC1 Transmit Buffer 0x0470_0040 1 bytes 0x0470_0040 SCC1 Receive Buffer 0x0470_0060 1 bytes 0x0470_0060 SCC1 Transmit Buffer 0x0470_0100 8 bytes 0x0470_0107 SCC2 Receive Buffer Descriptor0x0470_0100 2 bytes 0x0470_0101 SCC2 Receive Buffer Status0x0470_0102 2 bytes 0x0470_0103 SCC2 Receive Buffer Length0x0470_0104 4 bytes 0x0470_0107 pointer to SCC2 Receive Buffer 0x0470_0108 8 bytes 0x0470_010F SCC2 Transmit Buffer Descriptor0x0470_0108 2 bytes 0x0470_0109 SCC2 Transmit Buffer Status0x0470_010A 2 bytes 0x0470_010B SCC2 Transmit Buffer Length0x0470_010C 4 bytes 0x0470_010F pointer to SCC2 Transmit Buffer 0x0470_0140 1 bytes 0x0470_0140 SCC2 Receive Buffer 0x0470_0160 1 bytes 0x0470_0160 SCC2 Transmit Buffer .TE.LPThe following table describes the default VxWorks macros whichare used to address memory.TS Eexpand;lf3 lf3 lf3l l l ..ne 6.sp .5Macro Name Macro Definition Description_LOCAL_MEM_LOCAL_ADRS 0x0000_0000 Base of RAMRAM_LOW_ADRS T{LOCAL_MEM_LOCAL_ADRS + 0x0001_0000T} T{VxWorks image loaded here. Stack grows down from this address.T}RAM_HIGH_ADRS T{LOCAL_MEM_LOCAL_ADRS + 0x00d0_0000T} T{VxWorks bootrom loaded here.T}LOCAL_MEM_SIZE 0100_0000 Default 16 MBytes of RAMBCSR_BASE_ADRS 0450_0000 T{Default location of Board Control and Status Registers on PILOT revT}BCSRS_SIZE 0001_0000 64 KBytes on PILOT revDEFAULT_IMM_ADRS 0470_0000 T{Default location of MPC 8260 Internal Memory MapT}IMM_SIZE 0x20000 T{128K Internal Memory Map SizeT}ROM_BASE_ADRS 0xFFF0_0000 Base address of ROM on PILOT revROM_TEXT_ADRS T{ROM_BASE_ADRS + 0x100T} T{Text must start after vector tableT}ROM_WARM_ADRS T{ROM_TEXT_ADRS + 8T} Warm Reboot Entry AddressROM_SIZE 0x0010_0000 Default 1 MByte of ROM on PILOT rev (see ROM considerations).TE.sp
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -