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

📄 target.nr

📁 vwworks 在 at91rm9200上的bsp配置
💻 NR
📖 第 1 页 / 共 2 页
字号:
   No jumpers.

2. 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 "csb337", and in the "Select an Image to build:" column
       choose "bootrom.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/csb337".

3. Programming bootrom to CSB337 NOR FLASH:
   If you are using visionCLICK please follow the instruction in section 3.1 

   The emulator files are provided in a separate package.
   
   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 CSB337 board JTAG connector.

             Once all the connections have been made, power up the CP2 
             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 
             "csb337.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: "ARM->ARM9->ARM920T" . 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 CP2 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: "csb337_preset.reg", the file 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.

             IN

             This command is the reset command to initialize the board.

       3.1.6 Converting the bootrom:uncmp.hex to bootrom_uncmp.bin:

              3.1.6.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.hex" 
                      located in: 
                      "$(WIND_BASE)/target/config/CSB337/bootrom_uncmp.hex"

              3.1.6.2 In the group "Binary Downloadable Objects Modules" check 
                      the "Create Flat BIN File For Flash Programming". 
                      "In Range Of 0x" editbox, enter 10000000 for the start address, 
                      and in the "To 0x" editbox, enter "107FFFFF".

              3.1.6.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 CSB337 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 "0" 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:

                     For the 8MB Flash: "INTEL  28F640Jx ( 4096 x 16 )  1 Device "

             3.1.7.3 Set the proper address of the Flash to "10000000", check 
                     the "Erase All" radio button,and set the 
                     "Available RAM Workspace" setting to "00200000", set the 
                     "Bytes Of Target RAM Required" to "00200000".

             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 Flash tool programmer in a vxWorks image
		3.2.2 Build a new bootrom_uncmp.bin image with the project tool for CSB337 BSP with 
			the Menu Build->Build BOOT Rom and copy the bootrom_uncmp.bin file in the same directory
			as the vxWorks image downloaded by FTP.

		3.2.3 Boot the rebuilt vxWorks image and type the following command on the shell :
			->sysFlashUpdateFromFile "host:bootrom_uncmp.bin",0
		 
       
4. Running the VxWorks Boot ROM program:

   4.1 Disconnect visionPROBE II or the visonICE II if it still connected to the 
       board, because it still connected to the board in some case it can stop 
       the processor at the first instruction.

   4.2 Connecting the Ethernet channel and the serial channel:

       4.2.1 First, connect the supplied serial cable with the board. On 
             one said connect the SUB-D9 connector to the RS232 port on the "Serial 1" 
             of the CSB337 board, and on the other connect it to your host. The UART 
             devices is set as follow: 8 data bits, 1 stop bit, hardware 
             handshaking, and parity disabled. The serial console (38400 bps).

       4.2.2 Second, connect a standard Ethernet cable to the the RJ45
             connector on the CSB337 board.
             
   4.3 Launch a terminal program on the host side, and configure it according 
       to the following details: 8 data bits, 1 stop bit, no parity no hardware handshaking. 
       The serial console baudrate is 38400 bps.

   4.4 Now to execute this new boot program turn the board off,and on. and you 
       should get the vxWorks boot count down on the terminal window. Press any
       key to stop the count down. Now follow the instruction in the 
       instructions in the "Getting Started" chapter of the 
       "VxWorks Programmer's Guide." for more detail how to configure vxWorks.
.CE


.SH "SPECIAL CONSIDERATIONS"
This section describes miscellaneous information that the user needs
to know about the BSP.

.SS "ARM Thumb mode"
The ARM Thumb mode is not supported in this BSP.

.SS "Delivered Objects"
No pre-compiled objects are delivered with the BSP.

.SS "Make Targets"
The make targets are listed as the names of object-format files.  Append `.hex'
to each to derive a hex-format file name. Append `.bin'
to each to derive a bin-format file name.
In order to program the flash using VisionClick, please use the bootrom hex files.

'vxWorks', 'bootrom', 'bootrom_uncmp', 'vxWorks_rom' have been succesfully 
generated and tested with GNU compiler.

.SS "Special Routines"
The following routines are specific to this BSP and are available
to the user. The are written in C code in sysLib.c. For 
further details see the man pages:
.TS
expand;
sysPeripheralIntConnect() | connect a routine to a system peripheral interrupt
sysPeripheralIntEnable() | enable system peripheral interrupts
sysPeripheralIntDisable() | disable system peripheral interrupts
sysLedSet() | set a user LED value
.TE

NOTE: The first three routines are reserved for managing the interrupt level 1 (system peripheral interrupts).

.SS "SRAM usage"
The first 0x120 Bytes are reserved for VxWorks for the vector table,
FIQ code (not supported in this BSP) and the Exception Pointers.

The END Driver for the EMAC interface use the SRAM at offset 0x200 for the receive
buffer descriptor (8 bytes per descriptor).
The amount of memory used is depending on the number of descriptors defined for
the driver (see initialisation string in sysEnd.c). 

.SS "Divide by Zero Exception"
The ARM architecture does not provide for an integer divide by zero
exception.  Consequently, no exception is generated when an integer
divide by zero operation is performed programmatically and may provide an unpredictable result.

.SS "Target server options"
When the BSP is configured for using the serial interface as WDB connection.
It is necessary for the target server to increase the backend timeout and backend retry counts
(the "-Bt" and "-Br" options) from their defaults.  For example, -Bt 20
-Br 5 when using PPP at 38400 baud.

.SS "Known Problems"

BSP Validation Test Suite (VTS)

For the test the serial lines shall be configured to 38400.
An host computer with real COM port is required. Test on Host with emulated port
(i.e. laptop or USB to serial adapter) may fail.

error1:
Divide by zero is failing (see "Divide by Zero Exception).
This a known behavior on ARM architecture.

timestamp:
As the timestamp is based on the system clock, it cannot be disabled.
This is why the test "disable the timestamp timer" is skipped.

unsupported tests:  scsi, busTas (specific VME Bus), procNumGet (not implemented).

The CSB337 BSP pass all other tests

.SS "Other"

.IP "Instruction/Data Cache Mode"
When MMU is enabled, instruction cache has to be set to CACHE_WRITETHROUGH and
data cache to CACHE_COPYBACK (only supported for ARM920T).
For more details refer to the architecture suplement documentation.

.SH "BOARD LAYOUT"
The diagram below shows jumpers relevant to VxWorks configuration.

.bS
                                              
                (USER1&2) (PWR ON &
                           USER0)
    RESET          LED2    LED1    SW4  SW3  SW2
  ____|_____________________________|____|____|_____________ 
 |   [_]  |USB-B|   | |    | |     [_]  [_]  [_]            |
 |        |_____|   |_|    |_|                       _______|
 |          P7                                      | POWER |
 |________________________________________________  |_______|
 |..  __    ....................             P5   |         |
 |.. |  |   .................... P1          ..   |  _______|
 |.. |J |   _____                            ..   | | RS232 |
 |.. |T |  | F   |                           .. P6| |       |
 |.. |A |  | L   |                           .. ..| |Serial0| (BOT)
 |.. |G |  | A   |                           .. ..| |Serial1| (TOP)
 |.. |  |  | S   |                           .. ..| |_______|
 |.. |  |  | H   |                           .. ..|         |
 |.. |__|  |_____|                           .. ..|       __|
 |..       __________         _____          .. ..|      |__| LED3 (SPEED/LINK)
 |..      |          |       | LXT |         .. ..|         |
 |..      |CPU       |       | 971 |         .. ..|         |
 |..      |AT91RM9200|       |_____|         .. ..|   ______|
 |..      |          |                       .. ..|  |      |
 |..      |__________|                       .. ..|  | RJ45 |
 |..                                         .. ..|  |______|
 |..                                         .. ..|         |
 |..                                         .. ..|         |
 |..                                         .. ..|         |
 |..                                         .. ..|         |
 |P2                                         .. ..|         |
 |                                              ..|         |
 |      S1                                      ..|         |
 |     _____                                    ..|  _______|      
 |    |1   x|                                W1 ..| |       |      
 |    |2   x|                                .  ..| | CAN0  |  (BOT)    
 |    |3   x|             CSB337             .  ..| |   /   |      
 |    |4   x|                                .  ..| | CAN1  |  (TOP)    
 |    |_____|                                .  ..| |_______|      
 |________________________________________________|         |      
 |             P12   P9    P11                              |
 |             ..    ..    ..        P4                     |
 |     P10     ..    ..    ..      _______                  |
 |   ______    ..    ..    ..     | PS/2  |      CSB3XX     |
 |  |USB-A1|   ..    ..    ..     | KBD   |      BREAKOUT   |
 |  |USB-A0|   ..    ..    ..     | MOUSE |      BOARD      |
 |__|______|______________________|_______|_________________| 
  
              UART2 SPI   AC97
              UART3 I2C   or
                          I2S
.bE

.SH "SEE ALSO"
.tG "Getting Started,"
.pG "Configuration," 
.pG "Architecture Appendix,"
.iB "VxWorks ARM, Architecure supplement"

.SH "BIBLIOGRAPHY"
.I "ARM Architecture Reference Manual,"
.iB "Cogent CB337 Atmel AT91RM9200, OEM Single Board Computer Hardware Reference Manual"
.iB "AT91RM9200 Atmel ARM920T-based Microcontroller (doc1768)"

⌨️ 快捷键说明

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