This tool will take a compiled binary (.elf
) of your user code and create an application bundle suitable for distribution to a Microvisor device via the Microvisor cloud.
IMPORTANT Bundler is now deprecated: a more up-to-date version of its functionality is delivered by the Twilio CLI Microvisor Plugin, which should be used in preference to the code included here.
The standard development platform for Microvisor is Ubuntu 20.04 LTS. While we hope to support other platforms in due course, for now Mac and Windows users will have to choose between interacting with the Microvisor development tools through Docker or from within a virtual machine running Ubuntu.
Bundler requires Python 3 and has a number of further dependencies. To run Bundler, first run the following commands to install its prerequisites:
sudo apt-get install python3 python3-pip build-essential protobuf-compiler binutils-arm-none-eabi
pip3 install cryptography
pip3 install protobuf~=3.0
If you prefer to build inside a container, or are using Windows or macOS, a Dockerfile is also provided.
If you are running on Ubuntu, run the bundler directly, passing your .elf
file and the name of the output .zip
file as arguments:
python3 bundler.py path/to/your_compiled_app.elf path/to/your_bundled_app.zip
IMPORTANT You should always rebuild the container after updates to the Microvisor-Tools
repository.
docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -t mvbundler:latest .
docker run -v $(pwd):/mnt mvbundler:latest --help`
3. Create a bundle from the output of the FreeRTOS Demo Project:
docker run -v $(pwd):/mnt mvbundler:latest mv-freertos-cmsis-demo.elf mv-freertos-cmsis-demo.zip
This will output:
Bundle written to file: mv-freertos-cmsis-demo.zip