Building a system image

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:
  1. Download a BSP (Board Support Package) that supports your target hardware.
    You can find BSPs for many different architectures in QNX's Foundry27 BSP Directory at:

    Ensure that you download a version of the BSP installer appropriate for your host machine as well.

  2. Unpackage the downloaded BSP to a suitable location on the host.
  3. Launch the QNX Momentics IDE and switch to the System Builder perspective.
  4. In the System Builder Projects view, right-click and select Import.
  5. Select QNX > QNX Board Support Package as an import source, then click Next.
  6. 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.
  7. Click Browse (next to the File Name field) and use the file selector to navigate to and select a BSP archive file.
  8. 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.
  9. 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.
  10. In the Properties view on the right, ensure that the System > Create startup sym file? property is set to Yes and the System > Boot file property is set to a supported type such as ELF.
  11. Make note of the System > Image Address property setting because you'll need it later.
  12. Build the image by right-clicking the project and selecting Build Project.
  13. 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.