Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Setting Up the Hardware for the Axiom CMD565, VxWorks Module Example Target

Primary Software: LabVIEW Modules>>Embedded Development Module
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: I have an Axiom CMD565 evaluation board. How do I set up the hardware for use with LabVIEW Embedded if I would like to use the Axiom CMD565, VxWorks Module example target?

Solution:

Flashing the VxWorks Image



The Axiom CMD565, VxWorks Module target configuration expects the VxWorks ROM resident image with WDB serial connection to be present in external flash array of the CMD565 board. LabVIEW Embedded produces a built downloadable object module and downloads it into the external RAM of the board using the WTX protocol. The VxWorks ROM resident must be located in the external flash array and the board must be configured to boot form external flash array. To produce this configuration, follow these steps:

1. Configure you board as shown on picture below. This is default axiom configuration that allows to booting Axiom Monitor.



2. Connect COM1 to available COM port of your host machine. Make sure that you use a straight serial cable. A NULL modem cable will not work.
  
3. Launch AxIDE that comes with the board or other communication program (Tera Term) and open connection to serial port the board is connected to. Note that communication settings are: 9600, 8, N, 1, N.
 
4. Power up the Axiom board. The Axiom Monitor should come up.

---------------------------------------------------
AXIOM CMD-5XX UTILITIES -- 561/3/5 release 02.08.08a
-----------------------------------------------------

1. Debug Monitor
2. On-Chip CMFI Flash Programming
3. External Flash Programming
4. Test Hardware

Select:

 
5. Press 3 to flash external flash array
-------------------------------------
EEPROM PROGRAMMING


Select Flash Device to Program:

0. External Flash (U13/U14) - CS0
1. External Flash (U13/U14) - CS1
2. External Flash (U13/U14) - CS2

Q. Quit to Menu

Select:
 
6. Press 2 to select external flash on CS2
External Flash (U13/U14) on CS2 at address 00C00000

INTEL Flash
32-Bit Mode (MAP_SW 8 OFF)
1. Erase Flash Memory
2. Program from a file -> Flash CS
16-Bit Mode (MAP_SW 8 ON)
3. Erase Flash Memory
4. Program from a file -> Flash CS

AMD Flash
32-Bit Mode (MAP_SW 8 OFF)
5. Erase Flash Memory
6. Program from a file -> Flash CS
16-Bit Mode (MAP_SW 8 ON)
7. Erase Flash Memory
8. Program from a file -> Flash CS

Q. Main Menu
Select:
 

7. Press 5 to erase external flash array

AMD Flash Erase...
 

8. Press 6 to program external flash array

Send Motorola hex file now...
  
9. Hit the Upload button and browse for the vxWorks_romResident.S19 file located in the ..\resource\LabVIEW Targets\Embedded\vxworks\cmd565\bin directory. It takes a few minutes to program external flash.
 
10. Power off the Axiom board and configure dip switches and jumpers as shown below.




11. Power on the Axiom board. The VxWorks logo should appear on your terminal.
VxWorks

Copyright 1984-2002 Wind River Systems, Inc.

CPU: Axiom CMD-565 - PowerPC 565
Runtime Name: VxWorks
Runtime Version: 5.5
BSP version: 2.2/1
Created: Mar 15 2004, 10:53:50
WDB Comm Type: WDB_COMM_SERIAL
WDB: Ready.
 
12. Now your board is configured and ready for use as the Axiom CMD565, VxWorks Module.
 

Running an application


 
1. You need two serial ports to run the example application. COM1 (on the CMD565) displays diagnostic information, COM2 uses target server to download built application. Make sure that you get VxWorks logo on one serial port and only "WDB READY" on second one. Note that COM2 communicates at 57600 bps.
 
2. Launch LabVIEW and switch to the Axiom CMD565, VxWorks Module target
 
3. Launch the Embedded Project Manager by choosing Tools >> Embedded Project Manager...
 
4. Go to Target >> Target Server Configuration and make sure that Server and Debugger serial ports are correct. Note that Server serial port is COM port that is connected to the COM2 port on the Axiom CMD565 board.
 
5. Open terminal on COM port that is connected to the COM1 on the Axiom CMD565 board.
 
6. Create simple VI that prints something on diagnostic output using the One Button Dialog.vi. The string that is wired to the "message" terminal will be printed to stdout.
 
7. Add VI to the project, save, and build it.
 
8. Hit the run button (on Embedded Project Manager) to download and run built application. Terminal that is connected to diagnostic output should display message the VI prints.  


Related Links:
KnowledgeBase 3M88KGHD: Setting Up the Hardware for the Axiom CMD565, VxWorks RAM Image Example Target
KnowledgeBase 3M87MVHD: Setting Up the Hardware for the Axiom CMD565, VxWorks ROM Image Example Target

Attachments:


565-vx-module1.gif565-vx-module2.gif


Report Date: 06/09/2005
Last Updated: 06/09/2005
Document ID: 3M879QHD

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit