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

📄 target.nr

📁 wrSbc8255的vxWorks BSP驱动源码
💻 NR
📖 第 1 页 / 共 4 页
字号:
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         SBC8255 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.SS "Programming the Hard Reset Configuration Word to the On Board/SIMM FLASH".PP1. Power off the SBC8255 board and set dip switch S2-1 to Open position    (Sets Reset Configuration to internal default).2. Verify JP-24 jumper is set to 1-3 and 2-4 if you boot from the Local Flash.3. Power on the SBC8255 and the emulator (visionPROBE II or visionICE II).4. If you are using visionCLICK follow section 4.1, if you are using SingleStep    for vision follow section 4.2 :   4.1 Using visionCLICK:       4.1.1 In the terminal window at the ">BKM>" or ">ERR>" prompt enter the              "IN" command and press enter. Now you should get the ">BKM>"              prompt.       4.1.2 Continue to step 5.   4.2 Using SingleStep for vision:       4.2.1 Go to the "File" menu and choose the "Start Debug Session..." .       4.2.2 The "Debug" dialog box will popup, In the "Connection" tab             choose the visionPROBE option & the correct LPT port if you              are using visionPROBE, or visionICE & enter the emulator IP              address if you are using visionICE.			         4.2.3 In the "Processor" tab choose the MPC8255.       4.2.4 In the "File" tab choose the "Debug without a file" option             and press OK.       4.2.5 Now should get the "Debug Status" dialogbox and in the              "Debug Session" field you should have in green              "Started Successfully", press the 'Close' button.       4.2.6 Now go to the "Command" button in the toolbar and press on it. The             "Command" Window will popup, the prompt in the window will be              "SingleStep". Bring the mouse cursor above the "Command" window              and press the right button. A menu will popup, choose the              "VisionShell(vsh)" option. Now the prompt in the window will be              ">BKM>".       4.2.8 Cotinue to step 5.5. At the ">BKM>" prompt enter:    If you are using the 2MB On Board FLASH: AMD 29F016B (2048 x 8) 1 Device,   (8 Bit)..CS	   50Mhz Oscilator          66Mhz Oscilator   ---------------          ---------------   SY RSTCONF 04320206 8    SY RSTCONF 04320205 8.CE   If you are using the 4MB SIMM FLASH: AMD 29F080B (1024 x 8) 4 Device,   (32 Bit)..CS   50Mhz Oscilator           66MHZ Oscilator   ---------------           ---------------   SY RSTCONF 0C320206 32    SY RSTCONF 0C320205 32   .CE   The emulator should respond with the following:.CS   + Flash Erase : Success   + Program Configuration Word : Success   >BKM>.CE6. Power off the SBC8255 and close switch S2-1. You will get the ">ERR>"    prompt in visionCLICK "Terminal" window or in SingleStep "Command" window.7. Power on the SBC8255 and at the ">ERR>" prompt enter: "IN"8. The SBC8255 will read the configuration word from Flash during reset and    initialize the processor base on the configuration word entered in step 5    and you will get to ">BKM>".9. Now you are ready to disconnect the emulator and run the BSP..SS "Changing Core Speed / Cpm Speed / Input Xtal Speed".PPIn order to use the 66Mhz Oscilator instead of the 50Mhz you need to follow those steps:    1. Power off the SBC8255 board and set dip switch S2-1 to Open posetion        (Sets Reset Configuration to internal default).   2. Change the following switches:       ___________________________________      | 66Mhz Oscilator | 50Mhz Oscilator |      |-----------------|-----------------|      |   S2-6 Open     |   S2-6 Close    |      |   S2-7 Open     |   S2-7 Close    |      |   S2-8 Open     |   S2-8 Open     |      |_________________|_________________|       The BSP have the option to determine the CPU's Core Speed, the speed        at which to run the CPM, and the Input Xtal Speed Automatically by        reading the user switch. The BSP can also be configured to determine        this information Manually.       2.1 In order to determine the speed manually follow those steps:	           2.1.2 In "config.h" define the  MPC8255PART parameters as follow:                 For 50Mhz Oscilator:                 .CS                 #define MPC8255PART          MPC8255_150_100_50_PART                 .CE                 For 66Mhz Oscilator:                 .CS                 #define MPC8255PART          MPC8255_200_133_66_PART                 .CE                 Note(S): 8260 devices are marked: XPC[MPC]8255xxx core                           speed/cpm speed/clock speed. In this example, the                           chip was marked as 200/133/66Mhz. The board had a                           66Mhz Oscillator as a clock. Also in this case, the                           core is run at 200.                          Each time "config.h" is edited, new vxWorks and                           bootrom images should be built and Flash memory is                           to be programmed.   3. Now please go to the section above:	      "Programming the Hard Reset Configuration Word to the On Board/SIMM FLASH"       and follow the instructions on how to program the new Hardware Reset        Configuration Word that will match your setting..SS "SDRAM Size".PPInitial boards and bsps were supplied with a 16Meg SDRAMSIMM; more recent evaluation boards are supplied with a 64Meg SIMM.the BSP is logically setup for 64Meg of SDRAM. The 64Meg is divided into two halves. The first 32Meg is useable for code and data. The second 32Meg is specified as USER_RESERVED_MEM memory. The 64Meg option is specified as a #define in the "config.h" file. If your board comes with 16Meg of SDRAM change the following macro in "config.h".From:.CS    #undef  INCLUDE_16MEG_SDRAM			        #define INCLUDE_64MEG_SDRAM	    /* (requires hardware modification) */.CETo:.CS    #define INCLUDE_16MEG_SDRAM			        #undef  INCLUDE_64MEG_SDRAM	    /* (requires hardware modification) */.CEThe reason the BSP divides the 64Meg SDRAM into two 32Meg sections has to do with the EABI compilation option of a 24 bit address. The defaultcompilation options generates a "bl" for branch instructions. This increases performance, but places a 32Meg address limit on the code.  There are two "work arounds" to this limitation.     1.) recompile all the source with the -mlongcall compilation flag    2.) add remaining 32Meg to the memory pool vi the memAddToPool() function.  Option #1 would require all the libraries, driver, and the BSP to be recompiled with the -mlongcall compiler option. This results in a numberof code changes; the most obvious code change is branches are implementedvia brlr instruction verses the bl instruction.  Option #2, the perferrable options, requires the USER_RESERVED_MEM and thememAddToPool() constructs be used to specify the remaining 32Meg to be addedto the memory pool. Consult WindTech Note WTN41 for details on specifyinguser memory.** Note: Don't forget to change the "RAM_HIGH_ADRS" value in the makefile to be         the same as in "config.h". For 16Meg "00E00000" and for 64Meg          "01E00000"..SS "Ethernet Port"The BSP configures to use FCC2 as an Ethernet port. The name "motfcc" should be specified as the boot device to the boot ROMs when booting vxWorks over that interface. The Fast Ethernet Controller (FCC) makes available fast Ethernet connectivity through the use of a 10/100BaseT Ethernet transceiver conected to the MII port (JP21) and a RJ45 connector. The BSP configures to use END-style network driver. If you wishes to use the SCC1 as the boot device you need disable FCC2, and use SCC1 instead. Do this by changing in "config.h" the macro from "#define BOOT_DEVICE FCC_END" to "#define BOOT_DEVICE SCC_END", also the name "motscc" should be specified as the boot device to the boot ROMs when booting vxWorks over that interface. Each time config.h is edited, new vxWorks and bootrom images should be built and Flash memory is to be programmed..SS " NVRAM Support" This BSP implements NvRam via a EEPROM device. There are a few user parameters associated with this device. The parameters are located in the "config.h" file and are:.CS      #undef  INCLUDE_EEPROM_LOCKING    #define SMART_EEPROM_WRITE    #define ETHERNET_ADR_SET /* (used in bootConfig.c to enable 'N' command) */.CEThe INCLUDE_EEPROM_LOCKING parameter is typically #undef'ed. If #define'ed, theEEPROM will be software locked between accesses. This was implemented on theBSP to work around a power-on EEPROM corruption problem. It should be noted, that if the EEPROM is locked, its contents can not be altered via an emulator or visionPROBE II or visionICE II (JTAG does not meet the minimum timing relationships needed).The SMART_EEPROM_WRITE parameter is typically #define'd. When defined, the EEPROM write code first checks to see if a cell is the desired value. If the memory location already contains the desired value, the write is skipped. This was implemented to increase the life of the EEPROM device.  The ETHERNET_ADR_SET is a value that indicates the MAC address is stored in NVRAM and alterable via the 'N' bootrom command..SS "Changing the Ethernet Address"The SBC8255 boards do not have a unique Ethernet hardware address assigned to each board. A unique address is absolutely necessary if theuser wishes to connect the board to a network. Thus, the user must provide a suitable 6 byte Ethernet address for each board usedon a network. The default Ethernet Address is specified in the "config.h"The following relate to the storage of the Ethernet address in NVRAM:.CS    /* Ethernet MAC Address Parameters */    #define CUST_ENET3 0x01 /* Customer specific portion of MAC address */    #define CUST_ENET4 0x02    #define CUST_ENET5 0x03.CEThe first three bytes (0x00, 0xa0, 0x1e) are a Wind River specific prefixthat should be kept as-is. If for some reason you need to change them, in"config.h" change the following macros:.CS    #define WR_ENET0  0x00  /* Wind River specific portion of MAC (MSB->LSB) */    #define WR_ENET1  0xa0    #define WR_ENET2  0x1e	      #define	ENET_DEFAULT 0x1ea00000  NOTE:  The bytes are reversed in the #define due to little endian issues	 in the macro that processes the ENET_DEFAULT macro..CENote:    The "ENET_DEFAULT" macro should contain the same number as the three     "WR_ENETx" macros. For example : .CS    #define WR_ENET0  0x11    #define WR_ENET1  0x22    #define WR_ENET2  0x33	      #define	ENET_DEFAULT 0x33221100.CEThe user must change the last three bytes from 0x03, 0x02, 0x01 to three unique bytes (i.e., bytes not used by any other Wind River Ethernet connection on your net). Check with your system administrator if you do not know this information. If these bytes need changing (they often will not), a new boot ROM must be burned, and a new image must be built.Ethernet Address can be specified at the bootrom prompt (N command). The Ethernet address is stored in the on board NVRAM. This option will able you to change the last three bytes. To use this option, open the console window (for example: hayper terminal) and when the bootrom banner appear and the countdown start, press any key, when you get the [VxWorks Boot] prompt , press 'N' and follow the instructions..SS "BOOT FLASH"The BSP configures to use the 2MByte Local Flash. In order to use the 4MByte SIMM Flash instead , change in "config.h" the following lines:FROM: .CS    #define BOOT_FLASH ON_BOARD_FLASH.CETO:.CS    #define BOOT_FLASH SIMM_FLASH.CENew boot ROM must be burned, and a new image must be built.**Note: You need also to change the jumpers and switch's configuration. For         more details see "Setting the board Jumpers & Switches" section in         this file..SS "Serial Configuration"

⌨️ 快捷键说明

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