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

📄 target.nr

📁 VxWorks下的PowerPC 824X系列CPU的bSP包!
💻 NR
📖 第 1 页 / 共 3 页
字号:
.\" wrSbc824x/target.nr - SBC8240/8245 target specific documentation.\".\" Copyright 1984-2001 Wind River Systems, Inc..\".\" modification history.\" --------------------.\" 01b,11May01,g_h  update.\" 01a,22Nov00,gil  baseline version.\".\".TH wrSbc824x T "Wind River SBC8240/8245" "Rev: 11 May 01" "TORNADO REFERENCE: VXWORKS".SH "NAME".aX "Wind River SBC8240/8245".SH "INTRODUCTION"This manual entry provides board-specific information necessary to runVxWorks for the wrSbc824x BSP. Please read the section "Getting the board running vxWorks" in order to configure the boardto run vxWorks..SH "Getting the board running vxWorks"This section will guide you step by step how to get vxWorks running on this board.1. Setting the board Jumpers & Switches:   In order to get the board running with the default configuration. the    following jumper's and switch's need to be set as follows:   .CS   General Jumpers:    ____________________________________________   |   Jumpers   |   Jumpers    |    Jumpers    |   |-------------|--------------|---------------|   |JP1     1-2  | JP14    1-2  | JP27    1-2   |   |JP5     Open | JP15    1-2  | JP28    2-3   |   |JP8     1-2  | JP16    1-2  | JP33    Open  |   |JP9     1-2  | JP17    1-2  | JP37    Close |   |JP10    1-2  | JP18    1-2  |               |   |JP11    2-3  | JP19    1-2  |               |   |JP12    1-2  | JP20    1-2  |               |   |JP13    1-2  | JP25    Open |               |   |_____________|______________|_______________|   Bus speed Jumerps:    _________________________   | 100MHz Bus | 66 MHz Bus |   |------------|------------|   | JP2    1-2 | JP2    1-2 |   | JP3    1-2 | JP3    2-3 |   | JP4    1-2 | JP4    2-3 |   | JP6    1-2 | JP6    2-3 |   | JP7    1-2 | JP7    1-2 |   |____________|____________|   .CE2. Creating a bootrom_uncmp.hex:   2.1 Launch Tornado II, go to the "Build" menu and choose the option        "Build Boot ROM...".   2.2 the "Build Boot ROM" window will popup, in the "Select a BSP:" column       choose the "wrSbc824x", and in the "Select an Image to build:" column       choose "bootrom_uncmp.hex" and press the "OK" button.   2.3 After the build process will finish successfully (You will see "Done" in       the "Build window" without error), you will have the bootrom_uncmp.hex in       your BSP directory "$(WIND_BASE)/target/config/wrSbc824x".3. Programming bootrom_uncmp to SBC8240/8245 FLASH:   If you are using visionCLICK please follow the instruction in section 3.1    if you are using SingleStep please follow the instruction in section 3.2      3.1 Using visionCLICK:       3.1.1 Install the visionPROBE II  or visionICE II and power it on.              Connect the JTAG interface cable from the visionPROBE II  or              visionICE II into the SBC8240/8245 board JTAG (JP26 The JTAG Port)              connector.             Once all the connections have been made, power up the SBC8240/8245             board and start the visionCLICK executable on the host.       3.1.2 Configure the visionCLICK project:              The "Welcome To visionCLICK" window will appear .In this window              press on the "Configure" button, This will invoke "PROJECTS/LOAD"              window. In this window press on the '+' left to the              "PowerPC_C_Demo.prj".This will show you the project configuration.              Point with the mouse cursor on the "Microprocessors" option and              press the right button and choose the type of CPU you have on your              board. For example: "PowerPC->MPC82xx->MPC8240" for SBC8240 or             "PowerPC->MPC82xx->MPC8245" for SBC8245. Verify that the              "Target Control" option point to visionPROBE for visionPROBE II or              visionICE for visionICE II, Also switch to the "Communications"              TAB and verify that the "Normal Port/Rate" & "Download Port/Rate"              suite your connection. for example: "LPT1"  for visionPROBE II.              Now press the "Save" button at the bottom of the window and after              it on the "Activate" button.       3.1.3 Program visionPROBE II / visionICE II with the proper register              setting for the SBC8240/8245 board:             Go to the "Tools" menu and select the              "Log Output/Playback Scripts" option. The "Record / Playback"              dialog box will popup. In this dialog box go to the              "Playback Commands From File" group and press on the "Browse"              button. Navigate your self to the location of the following               register file: "sbc8240_100MHz_64MB.reg" for the SBC8240 board              with 64MB SDRAM, "sbc8240_100MHz_16MB.reg" for the SBC8240 board              with 16MB SDRAM, "sbc8245_100MHz_64MB.reg" for the SBC8245 board              with 64MB SDRAM. The files located in the visionCLICK              installation. After choosing the register file press on the "Open"              button to confirm the selected reg file. You will return back to              the "Record / Playback" dialog box. Now press on the "Start"              button located in the same group. In the "Terminal" window you can              see that the visionCLICK is running the script. When visionCLICK              will finish the playback you will get back the ">BKM>" or the              ">ERR>".       3.1.4 Get into Background Mode:              Execute the "IN" command to reset the board and initialize it with              the register setting.             .CS             IN             .CS             This command is the reset command to initialize the board.       3.1.5 Converting the bootrom_uncmp.hex to bootrom_uncmp.bin:              3.1.5.1 In visionCLICK, choose "Convert Object Modules" from the                       "Tools" menu. The "CONVERT BINARY AND SYMBOL OBJs" dialog                       box will pop up.Select "All Files" in the "Files of Type"                       box. Go to the "Select Input Object Module To Convert"                       group and navigate to the file "bootrom_uncmp.hex"                       located in:                       "$(WIND_BASE)/target/config/wrSbc824x/bootrom_uncmp.hex"              3.1.5.2 In the group "Binary Downloadable Objects Modules" check                       the "Create Flat BIN File For Flash Programming".                       "In Range Of 0x" editbox, enter 0 for the start address,                       and in the "To 0x" editbox, enter "FFFFFFFF".              3.1.5.3 Make sure that all the other check box are unchecked.                       Press the "Convert" button. Close the terminal window                       when the conversion completes.       3.1.7 Programming the SBC8240/8245 Flash:             In visionCLICK, select "Program Flash Devices" from the Tools              pull-down menu. This will invoke the "TF FLASH PROGRAMMING"              window. If you are not using visionCLICK, you can also invoke              this window using the "visionICE Utilities Panel" and follow the              steps below:             3.1.7.1 Click the "Select" in the "Flash Card or PC Host File                      Name and Path" group. The "CHOOSE A FILE FROM HOST PC"                      dialog box will popup. In the edit box enter the full path                      to the location of the "bootrom_uncmp.bin", or use the                      "<--Browse" button to browse to the file location. Go to                      the "+/- Bias" group and enter the number "FFF00100" in                      the edit box. Now click the "OK" button, this will bring                      you back to the "TF FLASH PROGRAMMING" dialog box.              3.1.7.2 In the "Programming Algorithm" group in, the edit box                      press on the "Select" button, and select one of the                      following Flash devices:                     The 512KB On Board FLASH: "AMD 29F040 (512 x  8) 1 Device"             3.1.7.3 Set the proper address of the Flash to "FFF00000", check                      the "Erase All" radio button,and set the                      "Available RAM Workspace" setting to "00000000", set the                      "Bytes Of Target RAM Required" to "60000".             3.1.7.4 Press the "Erase and Program" button.             3.1.7.5 Now the Flash memory is programmed with the new boot                      program.    3.2 Using SingleStep for vision:       3.2.1 Install the visionPROBE II  or visionICE II and power it on.              Connect the JTAG interface cable from the visionPROBE II  or              visionICE II into the SBC8240/8245 board JTAG (JP26 The JTAG Port)              connector.             Once all the connections have been made, power up the SBC8240/8245             board and start the SingleStep for vision executable on the host.       3.2.2 Configure the SingleStep project:              3.2.2.1 Go to the "File" menu and choose the                      "Start Debug Session..." .   	                3.2.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.			               3.2.2.3 In the "Processor" tab choose the "MPC8240" or "MPC8245".             3.2.2.4 In the "Register" tab choose the option                      "Use vision-style register window with REG file" and then                     browse to the location of the file                      "sbc8240_100MHz_64MB.reg" for SBC8240 board with 64MB                      SDRAM, "sbc8240_100MHz_16MB.reg" for SBC8240 with 16MB                     SDRAM, "sbc8245_100MHz_64MB.reg" for SBC8245 with 64MB                     SDRAM. The "sbc8240_100MHz_64MB.reg",                     "sbc8240_100MHz_16MB.reg", "sbc8245_100MHz_64MB.reg"                     files should be in the SingleStep registers directory.             3.2.2.5 In the "File" tab choose the "Debug without a file"                      option.       3.2.3 Get into Background Mode:              3.2.3.1 Now in the "File" tab press OK.             3.2.3.2 Now should get the "Debug Status" dialogbox and in the                      "Debug Session" field you should have in green                      "Started Successfully", press the "Close" button.             3.2.3.3 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>". If the prompt is                     ">ERR>" execute the "IN" command to reset the board and                      initialize it with the register setting.                     .CS                     IN                     .CS                     This command is the reset command to initialize the board.                      After you got the ">BKM>" prompt again continue with the                      instruction in the next section.        3.2.4 Converting the bootrom_uncmp.hex to bootrom_uncmp.bin:             3.2.4.1 Go to the menu and choose "Tools" and                     "Vision Flash Utility..." .              3.2.4.2 The "Flash Programming Window" will popup. Go to the                      "Files" tab, press the "Convert" button.             3.2.4.3 The "File Convertion" window will popup. In the                      "Enter new start address" edit box type "0x0" and in the                     "Enter new end address" edit box type "0xFFFFFFFF".      

⌨️ 快捷键说明

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