Manual installation
Notice: This article is only for the old experiences by using the installer, and will be obsoleted soon. we strongly recommend you to use Azure IoT Workbench which has much better experiences on both installation and development for developing on IoT DevKit. You can follow this tutorial to install Azure IoT Workbench and start up the new journey with IoT DevKit.
If you have problems on using the one-click install experience, follow these steps to manually install tools and packages for IoT DevKit development.
Windows
Step 1. Install Azure CLI 2.0 MSI
Follow the official guide to install Azure CLI 2.0 with MSI:
Download and run MSI for the Windows command line from: https://aka.ms/InstallAzureCliWindows
Step 2. Install Arduino IDE
The Visual Studio Code Arduino extension relies on the Arduino IDE. Download and install the Arduino IDE for Windows. Make sure you download the Windows Installer version.
Step 3. Install Visual Studio Code
Download and install Visual Studio Code for Windows. This is the primary development tool for building IoT DevKit applications.
Step 4. Download the latest package
-
Download Windows Installer to install Node.js.
-
Download the .zip file that contains required task scripts for IoT DevKit development in VS Code.
Locate the .zip and extract it to your Windows user folder (C:\Users\{your name}\azure-board-cli
). Then launch Command Prompt (cmd
) and run the following commands to configure:
cd C:\Users\{your name}\azure-board-cli
npm install
Step 5. Install the VS Code extension for Arduino
You can install Azure Marketplace extensions directly in Visual Studio Code. Select the extensions icon in the left pane, search for Arduino, and then select Install:
Step 6. Install the IoT DevKit board package
Add the IoT DevKit board by using Board Manager in Visual Studio Code.
-
Use
Ctrl+Shift+P
to open the command palette, type Arduino, and then find and select Arduino: Board Manager. -
Select Additional URLs at the lower right.
- In the
settings.json
file, add a line at the bottom of the USER SETTINGS pane and save."arduino.additionalUrls": "https://raw.githubusercontent.com/VSChina/azureiotdevkit_tools/master/package_azureboard_index.json"
- In Board Manager, search for az3166 and install the latest version.
Step 7. Install ST-Link drivers
ST-Link/V2 driver is required to communicate with the IoT DevKit.
-
Download the driver from STMicro product page.
-
Extract the .zip file and double click
stlink_winusb_install.bat
to install:
You now have all the necessary tools and packages installed for Windows.
Next Steps
You are all set! It’s time to build your first IoT application by following instructions in Projects Catalog.