Windows-IoT-Samples/BusTools
rsameser 50a270ddeb
Update readme.md
2021-06-25 20:00:35 -07:00
..
GPIOTestTool
I2CTestTools
Mincomm
PwmTestTool
SPITestTools
LICENSE
readme.md
windows-iot-bus-tools.sln

readme.md

page_type urlFragment languages products description
sample bustools
cpp
Windows 10
Windows IoT
Windows 10 IoT Enterprise
IoT Bus tools to interact with GPIO, I2C, PWM, SPI and UART

Windows IoT Bus Tools

This folder contains tools that let you interact with GPIO, I2C, PWM, SPI, and UART on the command line.

They will run on any edition of Windows, including Windows 10 IoT Enterprise.

The tools are:

  • GPIOTestTool
  • I2CTestTool
  • PWMTestTool
  • SPITestTool
  • MinComm (UART)

Steps to Build the Project

  1. Download Visual Studio 2019.

  2. Select packages for C++, Windows UWP, and Windows Desktop app development.

  3. Download the latest version of the Windows SDK.

  4. From the start menu, run Developer Command Prompt for VS 2019

  5. Navigate to the root of this repository and run:

    msbuild /p:Platform=x64 /p:Configuration=Release

Valid values of Platform are: ARM, ARM64, x86, x64

Valid values of Configuration are: Release, Debug

BIOS Settings for the UP Board

[!NOTE]

If you are using the UP Board, you will have to set up the BIOS GPIO configuration.

  1. Configure the BIOS GPIO on the UP Board:

  2. Once you power on the UP board, select the Del or F7 key on your keyboard to enter the BIOS setting.

  3. Navigate to Boot > OS Image ID tab, and select Windows 10 IoT.

For GPIOTestTool

  • Navigate to the Advance Tab: Select the Hat Configuration and select GPIO Configuration in Pin Order.

  • Configure the Pins you are using in the sample as INPUT or OUTPUT.

For I2CTestTool

  • Navigate to the Advance Tab: Select the Hat Configuration and under LPSS I2C #1Support Select ACPI.

  • Configure I2C0/GPIO SELECTION as I2C0.

For PWMTestTool

  • Navigate to the Advance Tab: Select the Hat Configuration and under LPSS PWM #1Support Select ACPI.

  • Configure the Pins you are using in the sample as INPUT or OUTPUT.

For SPITestTool

  • Navigate to the Advance Tab: Select the Hat Configuration and under LPSS SPISupport Select ACPI.

For MinComm(UART)

  • Navigate to the Advance Tab: Select the Hat Configuration and under LPSS HSUARTSupport Select ACPI.

For more information, please review the UP Board Firmware Settings.