Getting and extracting a BSP
You can install QNX BSPs from the QNX Software Center. For BSPs from other suppliers, you must contact QNX or the hardware vendor about how to obtain and install them.
Prerequisites
- a myQNX account; log in or register at: www.qnx.com/account/login.html
- cables, such as a USB-to-micro USB cable or a serial-to-USB cable, for connecting to your host system, debugging, and if relevant for your system, connecting to a display
- installed on a Linux or Windows host system:
- the appropriate QNX Software Development Platform (SDP)
- a terminal program (e.g., PuTTY); alternatively, you can use the QNX Momentics IDE Console View
- drivers, such as USB drivers, to enable communication between the host and the target
Installing a QNX BSP
- Open QNX Software Center, select the BSP to install, and follow
the steps in the wizard.
Instructions on installing BSPs are given in the
Install addon packages
section in the QNX Software Center User's Guide. To learn where the BSP gets installed on the host, follow the instructions in theDetermining where your package has been installed
section in this other guide.
Your BSP is delivered as a .zip archive. To begin using it, you can either extract it from the command line, or import it into the IDE.
Extracting from the command line
-
Create a directory specifically for storing the contents of the BSP you're working with.
If necessary, create the parent directory structure (e.g., /home/bspdir).
For example:
mkdir /home/bspdir/sabresmart
- Change into the directory you just created, then extract the BSP.
You should now be ready to build your BSP (see Building a BSP
in this chapter).
Importing into the IDE
- Start the IDE, switch to the C/C++ Perspective, and select .
- In the Import window, expand the QNX folder.
- Select QNX Source Package and BSP from the list, then click Next.
- In the Select the archive file dialog, click Browse... to open a file selector from which you can choose the BSP archive that you downloaded; after you've selected the archive file, click Next.
- In the Package selected to import dialog, confirm that this is the BSP package you want (there's a brief description of the package), then click Next to proceed.
- Define the settings for the project to be created. Specify a project name and optionally, a non-default storage location and working sets to which the project should be added.
- Click Finish.
The project gets created and the source is brought in from the archive.
You should now be ready to build your BSP (see Building a BSP
).