📄 target.ref
字号:
3.2.5.2 In the "Programming Algorithm" group in, the edit box press on the "Select" button, and select the following Flash device: For the 8MB Flash: "INTEL V28F640Jx (8192 x 8) 1 Device" 3.2.5.3 Set the proper address of the Flash to "FF800000", check the "Erase All" radio button,and set the "Available RAM Workspace" setting to "00002000", set the "Bytes Of Target RAM Required" to "60000". 3.2.5.4 Press the "Erase and Program" button. 3.2.5.5 Now the Flash memory is programmed with the new boot program.4. Running the VxWorks Boot ROM program: 4.1 Disconect the WindPowerICE if it is still connected to the board, because if connected, it can stop the processor at the first instruction in some cases. 4.2 Connecting the Ethernet channel and the serial channel: 4.2.1 First, connect the supplied serial cable with the board. The cable should be connected to the mini-DB9 connector on the edge of the card. Connect the other end of the cable with a standard DB9 connector directly to the host RS232 port. An optional DB25 adaptor may be needed. The COM port should be set to data bits, 1 stop bit, hardware handshaking, and parity disabled. The baud rate is 9600 bps. 4.2.2 Second, connect an RJ45 ethernet cable to the first TSEC port adjacent to the mini-DB9 serial port. 4.3 Launch a terminal program on the host, and configures it according to 8 data bits, 1 stop bit, hardware handshaking, and parity disabled. Again, the baud rate is 9600 bps. 4.4 If the board is not already powered off, turn it off momentarily. Power on the board and in about 15 seconds, you should see characters printed to the terminal window, counting down to boot. Press any key to stop the count down. Now follow the instructions in the "Getting Started" chapter of the "VxWorks Programmer's Guide" for more detail on how to configure vxWorks.5. Running the VxWorks without a VxWorks Boot ROM: VisionCLICK or WindPowerIDE can download a vxWorks image to the WR SBC 8540 or SBC 8560 through the JTAG interface without using the VxWorks bootrom. The requirement to define NO_VX_BOOTROM (in earlier version of the BSP) to run VxWorks without the VxWorks bootrom is no longer needed. VisionCLICK or WindPowerIDE should now be able to download and boot a standard vxWorks image. For network to use the bootline correctly, USE_ALT_BOOTLINE should be defined in config.h and have ALT_BOOT_LINE set to the correct network parameters.\sh BOOT DEVICESThe supported boot devices are:\cs mottsec - 10/100/1000 Triple Speed Ethernet Controller motfcc - 10/100 ethernet (on MPC8560 only, requires mezz card)\ceFEATURESThis section describes the support and unsupported features of the wrSbc85xx\sh Supported FeaturesThe supported features of the SBC85xx board are: MPC 8540/8560 processors Board Initialization. MMU support. Cache support. L2 Cache support. L2 SRAM support. Decrementer timer is used to implement a System Clock. Timestamp clock. MPC8560 10/100 FCC Ethernet Controller. On-chip Programmable Interrupt Controller. DDR SDRAM (up to 512 MB Memory SODIMM). Local bus SDRAM (up to 128 MB Memory SODIMM). FLASH (up to 64 MB SODIMM). FLASH 8MB on board, also used by bootrom. Saving boot parameters on the EEPROM when using vxWorks bootrom.The VxBus device drivers used for on-board devices include: m85x0Pci: PCI/PCI-X motTsecHEnd: On-chip 10/100/1000 Triple Speed Ethernet Controller. ns16550sio: MPC8540 DUART ns16550sio: SC16C2550 DUART\sh Unsupported FeaturesThe items not supported by the BSP of the wrSbc85xx are: RapidIO ATM channels 10/100 maintenance port (MPC8540 only)HARDWARE DETAILSThis section documents the details of the device drivers and boardhardware elements for the wrSbc85xx.\sh DevicesThe chip drivers included are:\tssysNvRam.c|Generic non-volatile RAM librarym85xxTimer.c|system clock,aux clock, and timestamp driver using PPC decrementercfiscs.c|Flash access routinessysEpic.c|Motorola MPC107 PIC interrupt controller driversysDuart.c|prepares serial driversysL2Cache.c|L2 cache librarymotFcc2End.c|FCC END driverm85xxCpmIntrCtl.c|CPM interrupt controller driver\teThe BSP configures the on-chip or on-board DUART to implement a consoledevice and the TSEC as an Ethernet. The SCC device in the CPM on the MPC8560is not actually used by this BSP, although a sample file sysScc.c is included.VxBus support is standard in this BSP, therefore additionalVxBus drivers can be used with this BSP. This may be useful,for example, for PCI devices.\sh Support for L2 CacheL2 Cache is configured with callback functionpointers for L2 cache Global Invalidation, L2 Cache Enable, L2 CacheFlush and L2 Cache Disable are intialized in sysHwInit(). By default, the256 KB L2 is configured to 128 KB of cache and 128 KB of SRAM. If adifferent configuration is desired, a new bootrom image should be usedto match the RAM image configuration of L2.\sh Support for Signal Processing Engine (SPE)MPC8540 and MPC8560 support an SPE APU that implements scalar andvector processing. Support for SPE is now available, but anSPE aware compiler must be used to create applications thatuse SPE instructions. The SPE support can be enabled bydefining INCLUDE_SPE in config.h, set by default.\sh Operating SpeedThe processor has built-in PLL circuits to control the operating speed of the Core Complex Bus (CCB) as well as the E500 core. The board uses a 33.33 MHz crystal and doubles it to 66.66 MHz before feeding into the processor. This processor clock input is referred to as the system clock(SYSCLK). SW7 or SW9 (depending on board revision) controls the PLL toprovide different operating speed combinations. This BSP supports a CCBspeed of 200 MHz or 266 MHz. At time of testing, a core speed of up to 666 MHz is officially supported by the hardware. An earlier revision of this file erroneously indicated DIP switch setting of speed of up to 933MHz. Although overclocking may work in some cases, they are not supported by the BSP and/or the hardware. Please verify the processor markings with its corresponding electrical specification.The serial console of the wrSbc8540 uses the DUART device of the MPC8540,whose clock is dependent on the CCB frequency. This BSP can auto-sense the CCB:SYSCLK ratio to configure for a baud rate of 9600 bps. The wrSbc8560uses a dedicate clock on board and will also default to 9600 bps.All time base facilities of the MPC85xx, including the decrementer timerused by VxWorks, is also based on the CCB frequency. If the auto-sense fail to report a proper ratio, it will default to a preset value definedby PLAT_FREQ_DEFAULT in config.h. To override the auto-sense feature,PLAT_FREQ_OVERRIDE should be defined.\sh Default Memory Map\csMemory Map from CPU point of viewChip Select Start Size Access to---------------------------------------------------------------------n/a 0xFE000000 1MB CCSR (Ctrl/Config/Status)n/a 0x7FFC0000 256KB L2SRAMMCS0 0x00000000 256MB DDR SDRAM SODIMMMCS1 0x10000000 256MB DDR SDRAM SODIMMCS0 0xFF800000 8MB On Board FLASHCS1 0xE4000000 64MB User FLASH SODIMMCS2 n/a n/a Not usedCS3 0x20000000 64MB Local SDRAM SODIMMCS4 0x24000000 64MB Local SDRAM SODIMMCS5 0x28000000 8KB 7-Segment Display 0x28100000 8KB User Switches 0x28200000 8KB Status Register 1 0x28300000 8KB Status Register 2 0x28400000 8KB Reset Control Register 0x28500000 8KB Wind Power Port 0x28700000 8KB DUART A COM1 (wrSbc8560) 0x28800000 8KB DUART B COM2 (wrSbc8560) 0x28900000 8KB Real Time Clock 0x28B00000 8KB 8KB EEPROMCS6 0xE0000000 64MB User FLASH SODIMMCS7 0x80000000 8KB ATM\ce\sh BootingUpon reset, the MPC85xx begins executing from 0xffff_fffc. Only the last4KB of memory is mapped by the TLB. The instruction at 0xffff_fffc branchesto resetEntry() located at the last 2KB of memory to begin initializationand mapping of memory static TLB entries. The DDR SDRAM is then mapped to0x0 where the vectors are setup to use and execution is then transferedto the RAM after copying and uncompressing if necessary.The bootrom for the wrSbc8560 allows loading with either the TSEC or the FCCethernet channel. In the boot dialog, they correspond to the "mottsec0" andthe "motfcc0" devices. To switch between the two boot devices after a loadis attempted, a hard reset or power cycle is necessary in order for the device to function properly. After the reset, press a key to stop the countdown, then use the "c" command to change the boot device to the desired network device.The wrSbc8560 also allows the use of a mezzanine card that has the FCC ethernet ports, and the second serial RS-232 port. If a mezzanine cardwith a second serial RS-232 port is plugged in, INCLUDE_MEZZ_COM2 shouldbe defined in config.h.If a different network setting (the bootline) is to be used after thevxWorks image gets loaded, the macro USE_ALT_BOOTLINE can be defined in config.h. The configuration defined by ALT_BOOT_LINE will be used inplace of the value stored in the NVRAM.\sh DDR SDRAM SizeInitial boards and bsp are supplied with a 512MB DDR SDRAM SODIMM.\sh Local Bus SDRAM SizeInitial boards and bsp are supplied with a 64MB or 128MB SDRAM SODIMM.\sh Network ConfigurationThe Ethernet uses an RJ45 (twisted pair) jack and can be used with either10baseT or 100baseTX. The TSEC port also allows 1000baseT. The hardwarewill auto-negotiate and configures the port accordingly.\sh NVRAM Support This BSP uses NvRam on the 8KB EEPROM device. The bootline is storedat the beginning of the NvRam, and boot device MAC address is storedat offset 0x200.\sh ROM Considerationsbootrom_uncmp.bin is provided with this BSP. The bootrom is configured to a ROM base address of 0x0. When programing the bootrom to the FLASH an offsetof 0xFFF00000 need to be given.\sh BOOT FLASHThe BSP configures to use the 8MByte On Board Flash. There is also a 64/128MBSODIMM flash device supported on the board, but only the 8MB flash is supportedfor booting.\sh Serial ConfigurationThe UART devices are configured with 8 data bits, 1 stop bit, hardwarehandshaking, and parity disabled. They operate at 9600 bps. Both theon-chip DUART on the MPC8540 or the on-board DUART with the MPC8560 arerouted to the same ports.As described in the Operating Speed section, the serial console of thewrSbc8540 uses the DUART device of the MPC8540, whose clock is dependent on the CCB frequency. This BSP can auto-sense the CCB:SYSCLK ratio to configure for a baud rate of 9600 bps. The wrSbc8560 uses a dedicate clock on board and will also default to 9600 bps.Also, be reminded that the wrSbc8560 also allows the use of a mezzanine card that has a second serial RS-232 port. If a mezzanine card witha second serial RS-232 port is plugged in, INCLUDE_MEZZ_COM2 shouldbe defined in config.h.\sh Programable Interrupt ControllerThe PIC driver provided by this BSP supports all internal and externalinterrupt sources. It can also be configured to route such sources tothe critical interrupt pin, as well as acting as handling the criticalinterrupts. However, since critical interrupts are routed directly to
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -