LilyGo-LoRa-Series/lib/RadioLib/examples/NonArduino/Tock
2024-05-12 10:43:40 +08:00
..
build.sh Update lib 2024-05-12 10:43:40 +08:00
CMakeLists.txt Update lib 2024-05-12 10:43:40 +08:00
libtockHal.h Update lib 2024-05-12 10:43:40 +08:00
main.cpp Update lib 2024-05-12 10:43:40 +08:00
README.md Update lib 2024-05-12 10:43:40 +08:00
tock.cmake Update lib 2024-05-12 10:43:40 +08:00
toolchain-arm-none-eabi.cmake Update lib 2024-05-12 10:43:40 +08:00

RadioLib as Tock application

Tock is an embedded operating system designed for running multiple concurrent, mutually distrustful applications on Cortex-M and RISC-V based embedded platforms.

RadioLib can be built as a Tock application using libtock-c. This is an example of running RadioLib as a Tock application.

This has been tested on the [SparkFun LoRa Thing Plus - expLoRaBLE board] (https://github.com/tock/tock/tree/master/boards/apollo3/lora_things_plus) but will work on any LoRa compatible Tock board (currently only the expLoRaBLE board).

The RadioLib example can be built with:

$ git clone https://github.com/jgromes/RadioLib.git
$ cd RadioLib/examples/NonArduino/Tock/
$ ./build.sh

Then in the Tock repo you can flash the kernel and app with:

$ make flash; APP=RadioLib/examples/NonArduino/Tock/build/tock-sx1261.tbf make flash-app