Compile firmware
Important: If you purchased an assembled device please skip this step
If you purchased an unassembled Friend device or built it yourself using our hardware guide, follow the steps below to flash the firmware:
Want to install a pre-built firmware? Navigate here
Build your own firmware:
-
Set up nRF Connect by following the tutorial in this video: https://youtu.be/EAJdOqsL9m8
-
In the nRF Connect Extension inside your VS Code, click āOpen an existing applicationā and open the
firmware
folder from the root of this repo. -
In the application panel of the extension, click the āAdd Build Configurationā icon.
-
Choose the board as āxiao_ble_senseā and select the configuration as āprj.confā. Then, click āBuild Configurationā.
-
Once the build succeeds, you will find the
zephyr.uf2
file in thefirmware/build/zephyr
directory. -
Double-click on the reset button of the device(see on image below) . The device will appear on your computer as a disk. Drag and drop the
zephyr.uf2
file into it.Note: On a Mac, you might see an error message after dropping the file, indicating that the process did not complete. This is just a Mac-specific error; the firmware is successfully uploaded.
If you have an assembled device, you can put a stick pin/needle into this whole and double-click 2 times
Thatās it! You have successfully installed the firmware on your device.