RIOT#
- Template: lf-riot-uc-template
- RIOT Documentation: doc.riot-os.org
- Supported Boards: RIOT Board Support
Prerequisites#
In addition to the common prerequisites:
- make version 4.0+ (on macOS, install via
brew install makeand usegmake) - ARM cross-compiler for ARM-based boards:
Setup#
Clone and initialize submodules:
git clone https://github.com/lf-lang/lf-riot-uc-template.git my-project
cd my-project
git submodule update --init --recursive
Building#
Configure LF_MAIN and BOARD in the Makefile, then:
Or override on command line:
For native Linux simulation:
Flashing#
Or with parameters:
Terminal#
Open a serial terminal:
Log Level#
Edit the Makefile:
Network Channels#
| Channel | Mode | Description |
|---|---|---|
| TCP/IP | Async | TCP sockets via RIOT's GNRC stack |
| CoAP/UDP | Async | CoAP over UDP for IoT networks |
| UART | Polled, Async | Serial point-to-point |
macOS Notes#
Use gmake instead of make (macOS ships with make 3.81, RIOT requires 4.0+):