📄 target.nr
字号:
'\" t.so wrs.an.\" ads8260/target.nr - Motorola MPC8260ADS target specific documentation.\".\" Copyright 1984-1999 Wind River Systems, Inc..\".\" modification history.\" --------------------.\" 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: 05 Mar 2000" "VXWORKS REFERENCE MANUAL".SH "NAME".aX "Motorola MPC8260ADS".SH "INTRODUCTION"This manual entry provides board-specific information necessary to runVxWorks for the ads8260 BSP. The BSP will work with both rev ENG and rev PILOT of the ADS8260 board.The default rev is PILOT, which is turned on by the macro BOARD_REV_PILOTin config.h. Differences between the PILOT and ENG rev are notedwherever important..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. Directly using vbug"Using the vbug, a bootrom image can be read from a host and programmeddirectly into Flash Rom. A version of vbug which supports the PILOT revof the board was not available at the time of this writing..SS "2. From RAM using vbug"Using the vbug, a bootrom image can be read from a host into RAM, andthen moved (programmed) into Flash Rom. A version of vbug which supportsthe PILOT rev of the board was not available at the time of this writing..SS "3. 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:Install 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 "4. 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. On the host, prepare a hex image of the bootrom. On a Unix host:.CS make bootrom_uncmp elfToBin < bootrom_uncmp > buncmp.bin cp buncmp.bin /tmp ls -l buncmp.bin.CENote the number of bytes given by the last step3. 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/buncmp.bin",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.4. At this point the VxWorks bootrom is programmed into Flash rom. Resettingthe board should yield the familiar VxWorks boot screen..SH "BOOTING VXWORKS".SS "1. Using vbug"Using vbug, a vxWorks image can be read from a host and loadedinto RAM. A version of vbug which supports the PILOT revof the board was not available at the time of this writing.However, the following instructions, written for and testedon the ENG rev of the board, are included for reference:Install the ADI card into your host, connect the ADI cardin your host to the connector labeled "ADI" on the ADI2COP board,and connect the JTAG_PORT on the ADI2COP board to the COP-JTAGconnector on the ADS board.5VDC must be applied to P19 on the ADS board. Note that P1 on theADS board is not used. Note also that the ADI2COP board requires nopower in this configuration; it receives its power from the connection to the host.For more details refer to the Motorola documentation for the ADI system,and to the MPC8260 ADS User's Manual.Once all the connections have been made, power up the ADS board and start thevbug executable on the host. Execute the reset command to initialize theboard:.CS PQII> reset.CEYou may get an error e.g. .CS Communication failure - failed to reset TAP controller.CEIf this occurs simply try again; you may need to press the red power onreset button on the ADS. If the problem persists remove power from theADS board, remove power from the ADI2COP by unplugging it from the host,and exit the vbug application. Then reconnect everything and start thevbug application again.A successful reset results in:.CS Stoppped on address fff00108.CE(Note: the address may be different on the PILOT board)Next download VxWorks:.CS PQII> load -fdl /<ADS860_BSP_PATH>/vxWorks Loading ELF file . . . Entry point set to 00010000 Loading section 1 (.text) : 0009722c bytes at 00010000 Loading section 2 (.rodata) : 0000f4cc bytes at 000a7230 Loading section 4 (.data) : 0001dcc4 bytes at 000b6700 Loading section 5 (.ctors) : 00000008 bytes at 000d43c4 Loading section 6 (.dtors) : 00000008 bytes at 000d43cc Loading section 7 (.got) : 00000010 bytes at 000d43d4 Loading section 9 (.sbss) : 000002f4 bytes at 000d43e4 (not loaded) Loading section 10 (.bss) : 000078c0 bytes at 000d46d8 (not loaded) Heap start address set to 000dbf98.CEAnd finally start VxWorks execution:.CS PQII> go 00010000.CE.SS "Jumpers on ENG board revision".LPThe baud rate generator assumes a 40 MHz system clock and aCPM multiplication factor of 2. The CPM multiplication factor isprogrammed on DS1, as follows:.TScenter;l ll l.Label Position_MODCK 1 OffMODCK 2 OffMODCK 3 OffRESERVED On.TE.SS "Jumpers on PILOT board revision".LPThe baud rate generator assumes a 40 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.TEOn 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 (Both ENG and 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 (Both PILOT and ENG 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: 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, BCSR0 through BCSR3 on ENG 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 + 0x0020_0000T} T{VxWorks bootrom loaded here.T}LOCAL_MEM_SIZE 0100_0000 Default 16 MBytes of RAMDEFAULT_BCSRS_ADRS 0450_0000 T{Default location of Board Control and Status Registers on ENG revT}BCSR_BASE_ADRS 0450_0000 T{Default location of Board Control and Status Registers on PILOT revT}BCSRS_ADRS_SIZE 0001_0000 64 KBytes on ENG revBCSRS_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_BASE_ADRS 0xFF80_0000 Base address of ROM on ENG revROM_TEXT_ADRS T{ROM_BASE_ADRS + 0x100T} T{Text must start after vector tableT}ROM_WARM_ADRS T{ROM_TEXT_ADRS + 8
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -