Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 1.84 KB

AzurePnP_MPLABX.md

File metadata and controls

17 lines (9 loc) · 1.84 KB

Programming the Plug and Play Demo using Microchip's MPLAB X IDE

  1. Connect the board to PC, then make sure CURIOSITY device shows up as a disk drive on the Desktop or in a File Explorer window

  2. Launch the MPLAB X IDE and navigate to the main toolbar's File > Open Project operation to load the demo project folder (*.X) located at [your_path]\Microchip-SAM-IoT-Wx\firmware\AzureIotPnpDps.X

    If the load error message in red appears in the Output window, click on the Resolve DFP for configuration: default link

    A screenshot of a cell phone Description automatically generated
  3. Set the AzureIotPnpDps project as the main (currently focused/active) project by right-clicking on it and selecting Set as Main Project

    A screenshot of a cell phone Description automatically generated
  4. Verify the project properties are set correctly before building the project. Right-click the project AzureIotPnPDps > select Properties > select "SAMD21-IoT WG-SN" for Connected Hardware Tool > select the latest SAMD21_DFP version > select the latest XC32 version for Compiler Toolchain. If any changes were made in the project properties window, the Apply button should become enabled. Make sure to hit the Apply button before hitting OK

  5. Right-click the AzureIotPnPDps project and select Make and Program Device. This operation will automatically clean and build the project before attempting to program the target device. After the BUILD SUCCESSFUL message appears in the Output window, the application HEX file will be programmed onto the SAM-IoT board. Once programming has finished, the board will automatically reset and start running its application code