Next, you can use the QNX Momentics IDE to build an image file that can be loaded onto the target
board and debugged by the Macraigor Usb2Demon Debugger.
To build a system image:
-
Download a BSP (Board Support Package) that supports your target hardware.
- Unpackage the downloaded BSP to a suitable location on the host.
- Launch the QNX Momentics IDE and switch to the System Builder perspective.
- In the System Builder Projects view, right-click and select Import.
- Select
as an import source, then click Next.
-
Click the Import from local archive file radio button.
You can also click Import from Foundry27 SVN repository,
to download a BSP from the Foundry27 server, but these instructions explain the
first method, which involves manual BSP file selection.
-
Click Browse (next to the File Name field)
and use the file selector to navigate to and select a BSP archive file.
-
At the bottom of the importing dialog, click Finish.
If you're prompted with the message
Build the projects from the imported package?,
click
Yes.
Note: Wait for the build to finish before proceeding.
The import process may take several minutes, depending on the BSP you selected.
-
Open the project.bld file from the System Builder Projects view,
and from the new view that appears in the editor area, select the image that corresponds to your board
from the left-side pane.
-
In the Properties view on the right, ensure that the
property
is set to Yes and
the property is set to a
supported type such as ELF.
-
Make note of the
property setting because you'll need it later.
-
Build the image by right-clicking the project and selecting Build Project.
-
In the Console view, scroll through the output to locate a line similar to this:
400280 d188 403960 --- startup-bios.sym
Or this:
200280 10188 202244 --- startup-mpc8349e-qs.sym
Note: The exact numeric values and filename will differ, but you want to focus on the line ending with
.sym. Take note of the first and third values on this line, as you'll need them later.
Now, in the System Builder Projects view, if you expand the Images directory,
it should contain an .elf file and a .sym file. This is the QNX Neutrino image
that is ready to be uploaded and debugged, but before you can debug it, you need to create a launch configuration.