-
Notifications
You must be signed in to change notification settings - Fork 14
MM Compilation Guide
This guide will describe how to install the MM stack by compiling from this source repository
The easiest way to start with MM stack is to used the mbed framework. This guide will detail this part. Nevertheless, it is still possible to bypass mbed libraries and to create a dedicated project without mbed dependencies. We will describe it in a future document.
Installing Mbed CLI You can get the latest stable version of Mbed CLI through pip by running or by cloning the development repository:
$ git clone https://github.com/ARMmbed/mbed-cli
$ python setup.py install
Installing Arm-gcc
$ apt-get install gcc-arm-none-eabi
You can set the arm compiler location via (suppose location is "usr/bin" ) :
$ mbed config -G ARM_PATH "/usr/bin"
$ git clone https://github.com/LoRaWanMiniMouse/Mini-Mouse.git
Before to compile we have to import mbed-os libraries
$ mbed new Mini-Mouse/
At this point we are ready to compile the code , we have to choose a target. MM uses a very simple hardware abstraction layer and can be simply ported to any platform but the source code is written for a NUCLEO_L476RG platform. A future doc will axplain how to ported a new platform. Compiling :
$ mbed compile -c -t GCC_ARM -m NUCLEO_L476RG --source MinimouseSrc/ --source radio/ --source UserCode/ --source McuApi --source mbed-os --profile mbed-os/tools/profiles/release.json
Plug your usb nucleo board and copy the generated .bin into the nucleo board
$ cp ./BUILD/NUCLEO_L476RG/GCC_ARM/MinimouseSrc.bin /media/****/NODE_L476RG/.