Skip to main content

Mastering the Vxprj Utility in VxWorks

·371 words·2 mins
VxWorks Vxprj CLI Workbench
Table of Contents
Free Training - This article is part of a series.
Part 11: This Article

Learning Objectives
#

After completing this section, you will be able to:

  • Apply vxprj commands to your projects
  • Import a vxprj-based project into Workbench

Overview of the vxprj Utility
#

The vxprj utility is a command-line tool provided by VxWorks to create, configure, manage, and build projects.

It can be launched from both:

  • Inside Workbench (integrated development environment)
  • Outside Workbench, directly via the CLI

If you use vxprj outside Workbench, the project can later be imported into Workbench for further development.

This tutorial includes multiple screenshots showing the results of using common vxprj commands.


Getting Help for vxprj
#

The vxprj utility includes built-in help to guide you through available commands and subcommands.

  1. To view general help and command groups, type:

    vxprj help
    

    or simply:

    vxprj
    

    vxprj help

  2. To get help for project-specific commands:

    vxprj project help
    

    vxprj vip help

  3. To get help for a specific subcommand:

    vxprj project <subcommand> help
    

    vxprj vip help


Managing Projects with the vxprj Utility
#

Now let’s walk through how to create and manage VxWorks projects using vxprj.

In the following examples, we’ll assume:

  • A VSB named myVSB
  • A VIP named myVIP
  • A target board: xlnx_zynqmp_3_0_0_1

1. Create a Project
#

Use the vxprj project create command to generate a new project.

vxprj utility


2. Configure VSB Options
#

You can set options for your VxWorks Source Build (VSB) using:

vxprj vsb config

vxprj utility


3. Configure VIP Components
#

Add or modify VxWorks Image Project (VIP) components with:

vxprj vip component add

vxprj utility


4. Build the Project
#

Once everything is configured, build the project with:

vxprj project build

vxprj utility


💡 Quick Reference:

  • To list valid BSPs: vxprj vsb listBsps
  • To list valid CPUs: vxprj vsb listCpus

Importing vxprj Projects into Workbench
#

If you created a project externally using vxprj, you’ll need to import it into Workbench for graphical editing, debugging, and simulation.

Steps include:

  1. Open Workbench.
  2. Use the Import Project option.
  3. Point to the directory containing your vxprj project.
  4. Complete the wizard to finish the import.

Once imported, you can leverage all of Workbench’s tools—such as debugging, performance monitoring, and simulation—while continuing to manage builds with vxprj.


✅ With vxprj, you get the flexibility of command-line control combined with the visual power of Workbench. This hybrid approach is ideal for both automated builds and hands-on development.

Free Training - This article is part of a series.
Part 11: This Article

Related

VxWorks Workbench Tools Architecture: Connecting to Targets
·438 words·3 mins
Workbench VxWorks Target Communication Framework TCF
VxWorks Workbench Overview
·13 words·1 min
VxWorks Workbench
VxWorks Source Build and Image Projects
·428 words·3 mins
VxWorks VSB VIP