The following steps will compile ElectraOne base firmware with the Demo application compiled in:
- Download the ARM GNU Toolchain. You can get it at GNU Arm Embedded Toolchain Downloads.
- Install it or make symlinks so that the
bin
,lib
,share
,arm-none-eabi
directories are located in the/usr/local/arm
directory. If the location is not suitable, provide Makefile with alternativeCOMPILERPATH
variable. - Switch to the project root directory and run
./scripts/install-tools
. On windows, you will most likely encounter compilation errors. I am working on it. Ignore it for now. - Build the firmware with
make all
- Make sure your ElectraOne is connected to the computer with a USB cable and run
make upload
.
If you got compilation errors when running ./scripts/install-tools
, the make upload
will fail. In that case you can upload the firmware image using the ElectraOneConsole app. You can find the firmware.img
file in the build
directory.
If you were able to compile and run the firmware with the default Demo app, you can compile a custom app by taking following steps. Minimal HelloWorld application will be used to demonstrate that.
- Download or clone the Demo applications from the GitHub.
- Place the
demos
directory next to thefirmware
directory. - Switch to the
firmware
directory and create a symlink to the app,ln -s ../demos/helloworld
- Run
make APPPATH=helloworld upload
. This will build the firmware with the HelloWorld compiled in and the firmware will be uploaded to the ElectraOne controller.