From 3c7dc7acba2f90200aea3235eba5d22d7d981e62 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Tue, 11 Jul 2023 22:10:32 +1000 Subject: [PATCH 1/2] Tock: README: Initial commit Signed-off-by: Alistair Francis --- examples/NonArduino/Tock/README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 examples/NonArduino/Tock/README.md diff --git a/examples/NonArduino/Tock/README.md b/examples/NonArduino/Tock/README.md new file mode 100644 index 00000000..cd13b6dc --- /dev/null +++ b/examples/NonArduino/Tock/README.md @@ -0,0 +1,28 @@ +# RadioLib as Tock application + +[Tock](https://github.com/tock/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](https://github.com/tock/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: + +```shell +$ 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: + +```shell +$ make flash; APP=RadioLib/examples/NonArduino/Tock/build/tock-sx1261.tbf make flash-app +``` From bb6106381009fb091bf597d1e79cf104e7d2bc78 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Tue, 11 Jul 2023 22:11:27 +1000 Subject: [PATCH 2/2] Tock: Expand the .gitignore Signed-off-by: Alistair Francis --- examples/NonArduino/Tock/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/NonArduino/Tock/.gitignore b/examples/NonArduino/Tock/.gitignore index 567609b1..bd0079c9 100644 --- a/examples/NonArduino/Tock/.gitignore +++ b/examples/NonArduino/Tock/.gitignore @@ -1 +1,2 @@ build/ +TockApp.tab