-
Notifications
You must be signed in to change notification settings - Fork 7
Lab Part 2
Cenk Gündoğan edited this page Dec 12, 2019
·
10 revisions
The following guide shows how to use RIOT on real IoT hardware, i.e., build application for specific board, flash and run it. It also shows how to connect the Raspberry Pi with your PC, laptop or workstation. Note: the IoT hardware kit provided for the VS Lab4 exercise has all requirements installed, please use the Rasperry Pi.
The application will run on most boards supported by RIOT, if available it
reads temperature values from a HDC1000 sensor. This sensor is available on
the PhyTec PhyWave (RIOT board name pba-d-01-kw2x
), also see the
RIOT-Wiki.
- Compile the application on this board (or replace
BOARD=<name>
) as follows:
BUILD_IN_DOCKER=1 BOARD=pba-d-01-kw2x make clean all
- flash application onto the board:
BUILD_IN_DOCKER=1 BOARD=pba-d-01-kw2x make flash
- to get access to any (debug) output printed by the RIOT application, start a terminal connection over USB, by executing:
BUILD_IN_DOCKER=1 BOARD=pba-d-01-kw2x make term
if the terminal connection fails:
- check requirements, i.e.,
python
and the python packagepyserial
are installed - explicitly set which terminal to use, look for
/dev/tty.usb<something>
or similar, then runPORT=/dev/tty.usb<something> BOARD=pba-d-01-kw2x make term
.