This folder contains examples for bindings or direct usage of McuBoot library. For instructions on how to run, refer to the sections below.
Every example has a comment at the start to describe what it does and may contain some notes about the binding or example.
Rust examples can be run with the following Cargo command:
cargo run --example <filename> -- <arguments>To run get_property.rs with COM3 device, you would write the following:
cargo run --example get_property -- COM3Follow instructions for installing the Python package. Once you do that, run all examples with python command. For get_property.py with COM3 device from this folder, use the following:
python python/get_property.py COM3Follow instructions on compiling C libraries. Then you can build examples using CMake. To do so, install cmake and any modern C and C++ compiler. Then, inside the c folder, run:
mkdir build
cd build
cmake ..
cmake --build .This will build examples either in the build directory directly or Debug directory, depending on your compiler.