⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 target.nr

📁 wind river提供的MPC8260的BSP典型代码
💻 NR
📖 第 1 页 / 共 4 页
字号:
                     "Enter new start address" edit box type "0x0" and in the                     "Enter new end address" edit box type "0xFFFFFFFF".                   3.2.5.4 Now press the "Convert" button. After the convert operation                     finished, you will see it in the "Convert Result" section                     press the "Close" button.                 3.2.6 Programming the SBC8260 Flash:             3.2.6.2 In the "Flash Programming Window" window. Go to the                      "Configuration" tab, & choose the following Flash device:                     The 4MB SIMM FLASH:    "AMD 29F080/81(1024 x 8) 4 Devices"                     The 2MB On Board FLASH: "AMD 29F016/17(2048 x 8) 1 Device"                     ** Note: In order to use the On Board FLASH some jumpers                               and switches should be changed.                     In "Flash Bank" group for the "Start:" enter "FFF00000".                      In the "RAM Workspace" group for the "Workspace Start at:"                      enter "00000000" and for the "Workspace Size:" enter                      "60000".             3.2.6.3 Now switch to the "Files" tab and press the "Add" button.                      The open dialogbox will popup, browse to                      "$(WIND_BASE)\target\config\wrSbc8260\" and choose the                      "bootrom_uncmp.bin" file. Now after getting back to the                      "Files" tab you will see the full path to the selected                      file in the "Binary Files" group. Move the mouse curser                      above the line that showing the full path in the                       "Binary Files" group and press the right button to mark                      this line. Now press the "Toggle Enable" button to select                      this binary file. Make sure that the line is still marked,                      and press the "Edit" button on the right. The "File Edit"                      dialog box will popup. In the "Enter new start address"                      edit box enter "0xFFF00100" and press the "OK" button.             3.2.6.4 Now go to the "Program" tab and press the "Erase/Program"                      button.             3.2.6.5 Now the Flash memory is programmed with the new boot 	     	     program.4. Running the VxWorks Boot ROM program:   4.1 Disconnect visionPROBE II or the visonICE II if it still connected to        the board. In some case it can stop the processor at the first        instruction if it is still connected.   4.2 Connecting the Ethernet channel and the serial channel:       4.2.1 First, connect the supplied serial cable with the board. On              one side, connect the RJ11 connector to the COM1 (JP13) port on              the SBC8260. On the other side use an RJ11 to 9/25 Pin adapter to 	     connect it to your host serial port. The UART device is set as              follows: 8 data bits, 1 stop bit, hardware handshaking, and parity              disabled. The serial console baud rate is 9600 bps.       4.2.2 Second, plug the Fast Ethernet transceiver that came with the              board to the MII connector on the board (JP15). Connect a              standard Ethernet cable to the the RJ45 connector on the Fast              Ethernet transceiver.   4.3 Launch a terminal program on the host side, and configure it according        to the following details: 8 data bits, 1 stop bit, hardware handshaking,        and parity disabled. The serial console baud rate is 9600 bps.   4.4 To execute the boot program, reset the board by cycling the power or       pressing the reset button. You should get the vxWorks boot count down on       the terminal window. 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 details on how to configure        vxWorks..SS "Default configuration"bootrom_uncmp.hex is provided with this BSP. The bootrom_uncmp is configured to a ROM base address of 0x0 and includes, also it's configured to use the 2 MByte On Board FLASH and FCC2 10/100BaseT Ethernet as default boot device and SMC1 as console device. The hard reset configuration word must be programmed separately at the flash base address of 0xFE000000 and at offsets 0x0, 0x8, 0x10 and 0x18, see chapter 5 Reset in the MPC8260 PowerQUICC II User's Manual..SS "Using visionWARE to run VxWorks"The following section will explain how to launch VxWorks using visionWARE as a boot loader. Please follow the steps below:Note: Before using vsionWARE you need to verify that visionWARE is programmed       to you FLASH. If visionWARE is not exist on your FLASH, please see       "Programming bootrom_uncmp to SBC8260 FLASH" section how to program the       SBC8260 Flash, also you can skeep step 3.1.6 or 3.2.5 that explain how to      convert the bootrom_uncmp.hex to *.bin, and instead of programming the       "bootrom_uncmp.bin" program the "vWARE.bin" file.	      1. Connect your SBC8260 serial channel (COM1) to a host running terminal        program at 9600 baud rate (For example ' HyperTerminal') using the        supplied serial cable.    2. Connect your SBC8260 100Base-T (JP15) port using the Fast Ethernet        Transceiver to a network hub.    3. Open TFTP server and point to the location of the vxWorks.bdx file. If        you want to use the TFTP server that is supplied with visionWARE, go to        the visionWARE directory on your host, insaide the visionWARE root        directory you will find "tftp" directory that contain application called        "tftpd32.exe" . Run this application and the TFTPD32 window will popup.        In the TFTPD32 window press on the "Settings" button. This will invoke        the "Tftpd32: Settings". Go to the "Base Directory" group and inside the        edit box type the full path to your vxWorks image, or use the "Browse"        button to navigate to there.    4. Power up your SBC8260 and press any key within 3 seconds from the serial        terminal to abort the boot script. This will display a ">BKM>" prompt.    5. Type the "shell" command and press enter. Now you should get the        following line: "Command Channel = 0: serial >" Press enter.    6. Next line will be: "Boot Delay (seconds) = 1 >". Here you need to        specify the disaierd delay value and press enter.    7. Nex line will be: "Boot Script = >". Here you need to give the boot        script command. Please type the following:        "load \\host\vxWorks.bdx!launch 100000" . Where "host" is the host        name, and press enter.	         Note(s):       ** It is very important to keep the same space between the "load"           command and the host name "\\host".       ** It is very important to keep the same space between the "launch"           command and the "100000".       ** The host name should be the same as specified in the           "Remote System 1 Name" line.    8. Next line will be "Prompt String = BKM >" . Press enter.	    9. Next line will be "MAC Address = 00-00-00-00-00-00 >" . If you want to        change the target MAC address, type it now and press enter, else press        just enter.   10. Next line will be "IP Address = 0.0.0.0 >". Type your target IP address.        For example: 192.168.199.0 and press enter.   11. Next line will be "Subnet Mask = 0.0.0.0 >" . If you want to use subnet        mask, type it now and press enter,        else just press enter.   12. Next line will be "Default Gateway = 0.0.0.0 >" . If you want to use        default gateway, type it now and press enter, else just press enter.   13. Next line will be "Remote System 1 Name = >" . Here you need to type        the same host name you specified in the "Boot Script" line.   14. Next line will be "Remote System 1 IP = >" . Here you need to type        your host IP address. For example: 192.168.199.1 and press enter.   15. Next line will be "Remote System 2 Name =  >" . Just press enter.   16. Next line will be "Remote System 3 Name =  >" . Just press enter.   17. Next line will be "Remote System 4 Name =  >" . Just press enter.   18. Now you will get the following message:        Saving changes will generate a reboot.       Save Changes (y/n)?       Press 'y' to save the changes.   19. Now the changes are saved and the board will restart visionWARE and        boot vxWorks, after a few seconds you will get the following messages:.CS       Wind River visionWARE v2.00 for the SBC8260 Board         MAC : 00-00-00-00-00-00 IP : 192.168.199.0       Type "shell" to set IP and/or MAC addresses       Type "help" to see available commands       Press a key in the next <1> seconds to preempt boot script       Booting from script...       load \\host\vxWorks.bdx!launch 100000       >Attached TCP/IP interface to motfcc unit 0       Attaching interface lo0...done                        VxWorks       Copyright 1984-1998  Wind River Systems, Inc.                   CPU: MPC8260 PowerQUICC II -- Wind River. SBC8260               VxWorks: 5.5           BSP version: 1.2/40         Creation date: Sep 23 2001                   WDB: Ready..CEFor more information regarding visionWARE boot services and the visionWARE development kit, please refer to the visionWARE manuals, located on the CD that was shipped with your board..SS "BOOT DEVICES"The supported boot device(s) is(are):.CS    motfcc - MII 10/100BaseT Fast Ethernet (FCC2)    motscc - 10BaseT Ethernet (SCC1).CE.SH "FEATURES"This section describes the supported and unsupported features of the SBC8260.SS "Supported Features".PPThe supported features of the SBC8260 board are:    8260 processors    Board Initialization    MMU support    Cache support    Decrementer timer, is used to implement a System Clock.    SMC1 a UART for COM1 (Consol channel).    SMC2 a UART for COM2.    SCC1 Port as an Ethernet device supporting 10Base-T protocol.    FCC2 Port as an Ethernet device supporting 10/100Base-T protocol.	    TIMER2 as an 16-bit auxiliary clock.    TIMER3 and TIMER4 are cascaded into a free-running 32-bit timer for         timestamp support.    8260 SIU Interrupt Controller.    Baud Rate Generators as required for SMC1 and SMC2.    64MB/16MB SDRAM on 60x bus.    4MB SIMM FLASH on 60x bus.    2MB On Board FLASH on 60x bus.    4MB SDRAM on Local bus.    32KByte EEPROM for Ethernet MAC address and bootline.    133, 150, 200 MHZ Core speeds     66,  100, 133 MHZ CPM speeds .SS "Unsupported Features".PPThe items not supported on the SBC8260 are:    virtual DMA    Parallel Ports    Baud Rate Generators not used by supported devices    SPI    I2C    SCC2, SCC3 and SCC4    ATM, Transparent, or HDLC protocols on FCC1     FCC3    MCC1 and MCC2    Any of the eight TDM interfaces    Support for the PCI bridge    Support for the L2 cache (hardware not available)	.SH "HARDWARE DETAILS"This section documents the details of the device drivers and boardhardware elements for the SBC8260..SS "Support for L1 Cache Locking"L1 cache locking is available for MPC8260. The cache lock routine can beused to lock the entire data or instruction cache with a specified memory region. .SS "I/O Port routins"The SBC8260 is equipped with four parallel I/O ports, each comprised of 32 discrete I/O pins. sysIOPort.c is sample code for reading / writing I/O pin states and connecting an interrupt handler that triggers on a pin state transition..SH "TrueFFS support".PPThis BSP supports the optional product TrueFFS for Tornado. To use TrueFFSinstall the product, define the following macro in "config.h":FROM:.CS     #undef  INCLUDE_TFFS.CETO:.CS     #define INCLUDE_TFFS.CETrueFFS is set up to use the second Flash (Not the boot FLASH). That meansthe FLASH that is connected to CS6. If the boot FLASH is the 2MB On Board FLASH then the TFFS is set up to use the 4MB SIMM FLASH. If the boot FLASH is the 4MB SIMM FLASH then the TFFS is set up to use the 2MB On Board FLASH..SS "Devices"The chip drivers included are:.PP.CS    smc8260Sio.c        - serial driver    m8260IntrCtl.c      - interrupt controller driver    m8260Timer.c        - timer driver    byteNvRam.c         - Byte oriented nvram device    eeprom.c            - EEPROM access routines    m82xxDpramLib.c     - DPRAM memory driver.    m8260SccEnd.obj     - SCC Ethernet END driver    motFccEnd.o         - FCC Ethernet END driver    miiLib.o            - Media Independent Interface library.CE.PPThe BSP configures SMC1 as a UART to implement a console deviceand the FCC2 as an Ethernet device.SMC1 is used as a console device.SCC1 is used as a 10Base-T Ethernet port.FCC2 is used as a 10/100Base-T Ethernet port. .SS "Default Memory Map".CS        Memory Map from CPU point of viewChip Select	Start          Size         Access to------------------------------------------------------------------CS2-3 (R/W) 0x0            16MB (min)   DIMM SDRAMCS5 (R/W)   0x22000000	   32KB (min)   NVRAM (EEPROM)            0x0F000000     64KB         SBC8260 internal DPRAMCS0-1 (R/W) 0xFFC00000      4MB (min)   SIMM FLASH memoryCS6 (R/W)   0xFFE00000	    2MB	        On Board Local FLASHCS4 (R/W)   Local Bus	    4MB         SDRAM on Local busCS7 (W)	    0x21000001	    8Bit        User LED's (Register)CS7 (R)	    0x21000001	    8Bit        User Switch's (Register)CS7 (R)	    0x21000000	    8Bit        Present Detect (Register).CE.SS "Shared Memory"NA

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -