PciScanBus Sample

Description

This sample program searches for devices on the machine's PCI buses. When a device is found, the PCI configuration information is printed to the screen.

Source Files

File Description
PciScanBus.c Searches for devices on the machine's PCI buses. When a device is found, the PCI configuration information is printed to the screen.

Building the Sample

  1. Open a project file in the corresponding Visual Studio version you use for development.
  2. Build the project.

Running the Sample

To run the sample:

  1. Boot the system in its Windows Boot Configuration.
  2. Navigate to <InstallDrive>\MaxRT\eRTOS\.
  3. Right-click AutoStart.bat and select Edit.
  4. Write the Run command(s) for PciScanBus.

Note: For more information on Run commands, see Run.

  1. Re-boot the system from a GRUB bootable USB drive or hard drive.
  2. Select the desired GRUB boot configuration. See GRUB Boot Configurations for more information.
  3. Upon system boot, the sample(s) will run automatically after the eRTOS Kernel startup.
  4. Sample output will be displayed on the screen when the program ends.
  5. Re-boot the system in its Windows Boot Configuration.
  6. Navigate to <InstallDrive>\MaxRT\eRTOS\.
  7. Open the RtLogFile.txt log file to view sample output.