You are viewing an older revision! See the latest version
Build Project
1. Launch the following command in order to download the project:
mbed import https://os.mbed.com/teams/Avnet-Silica/code/mbed-os-sensor-node/ cd mbed-os-sensor-node/
. The command "mbed deploy" will require few minutes.
2. From the root of the project open *mbed_app.json* file and modify the following line:
- change "spirit1.mac-address": "{0x7, 0x6, 0x5, 0x4, 0x3, MONTH, DAY, YEAR}" substituting MONTH, DAY, YEAR with hex numbers. For example your birth date.
3. Go to https:connector.mbed.com webpage and login into it.
4. Go to the page https:connector.mbed.com/#credentials and click on Get my device security credentials:
.. image:: _static/mbed-security.jpg :align: center
5. Copy the text showed on grey background.
6. In the root directory of the project open *security.h* file and paste substituting all text.
7. Compile the project for the sensor node:
<<code>>
mbed compile -t GCC_ARM -m SILICA_SENSOR_NODE -c
<</code>
where:
- -t selects the toolchain used.
- -m selects the device compiled for.
- -c rebuilds all from scratch.
8. At the end of the compilation you will have a screen like this:
.. image:: _static/compiled.jpg :align: center
9. The firmware has been created at *BUILD
SILICA_SENSOR_NODE
GCC_ARM
mbed-os-sensor-node.bin*
10. Copy the binary file into the mass-storage of the board. Once it is copied the demo will start.