Now it’s time to set up the development environment
- Download and install the Arduino IDE
- Windows: Use Windows Installer version Important: Do not select the installer for the Windows App, select the Windows installer version. The Windows installer is a .exe file that will install the Arduino IDE to the
C:\Program Files (x86)
folder location.You can download and save the installer before running it if you want – it is named something similar to the following: arduino-1.8.8-windows.exe
- Windows: Use Windows Installer version Important: Do not select the installer for the Windows App, select the Windows installer version. The Windows installer is a .exe file that will install the Arduino IDE to the
- Launch Visual Studio Code
- Open the Extensions panel with the keyboard shortcut Ctrl + Shift + X
- Search for azure workbench
- Click on the Azure IoT Device Workbench extension
- Click Install
- Once the extension is finished installing, click Reload
- Open the Visual Studio Code preferences with the keyboard shortcut Ctrl + ,
- Click the {} icon in the upper right hand corner of the window to edit the JSON
- Add the following JSON to your User settings file.
“arduino.path”: “C:\\Program Files (x86)\\Arduino”, “arduino.additionalUrls”: “https://raw.githubusercontent.com/VSChina/azureiotdevkit_tools/master/package_azureboard_index.json”,
On the File menu, click Save All, and then close and restart Visual Studio Code. When Visual Studio Code restarts you may see some installation tasks launch. Follow the on-screen instruction to complete the installation process if needed.
- On the File menu, click Save All, and then close and restart Visual Studio Code. When Visual Studio Code restarts you may see some installation tasks launch. Follow the on-screen instruction to complete the installation process if needed.
- Press F1 to open the command palette
- Type Board Manager
- Select Arduino: Board Manager and press Enter
- In the search box, type az3166 Note: There should be one item titled MXChip – Microsoft Azure IoT Developer Kit by Microsoft Developer.
- Select the latest version from the drop down, and then click Install
ST-Link Configuration
The USB interface used to communicate with your MXChip is ST-Link.
Windows
Download and install USB driver from STMicro.
Next time i will show you how to register your MXChip device with IoT hub.