-
Connect the board to PC, then make sure
CURIOSITY
device shows up as a disk drive on theDesktop
or in aFile Explorer
window -
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 theOutput
window, click on theResolve DFP for configuration: default
link -
Set the
AzureIotPnpDps
project as the main (currently focused/active) project by right-clicking on it and selectingSet as Main Project
-
Verify the project properties are set correctly before building the project. Right-click the project
AzureIotPnPDps
> selectProperties
> select "SAMD21-IoT WG-SN" forConnected Hardware Tool
> select the latestSAMD21_DFP
version > select the latest XC32 version forCompiler Toolchain
. If any changes were made in the project properties window, theApply
button should become enabled. Make sure to hit theApply
button before hittingOK
-
Right-click the
AzureIotPnPDps
project and selectMake and Program Device
. This operation will automatically clean and build the project before attempting to program the target device. After theBUILD 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