forked from mohr/ArduinoIO
55 lines
2.1 KiB
Markdown
55 lines
2.1 KiB
Markdown
Arduino IO Interface Board for EIVE
|
|
======
|
|
|
|
## General Information
|
|
|
|
This is the software for an Arduino board to set it up as an interface board.
|
|
The interface board will be used to relay commands from a host computer serial
|
|
interface to connected I2C or SPI sensors. This allows device handler testing
|
|
on a host machine. There are 2 options to build and flash an Arduino with this repository:
|
|
1. The software is compiled and programmed on the Arduino with make and avrdude, provided the AVR GCC toolchain is installed
|
|
2. Eclipse with the Sloeber plugin is used. The plugin and Eclipse take care of the build management, and an Arduino IDE like interface is provided in Eclipse
|
|
|
|
It is recommended to use Sloeber for enhanced convenience, as it takes care of the building process. Furthermore, the interface is similar to the Arduino IDE, which lowers the entry barrier for new developers. It is also integrated into Eclipse, which has a powerful indexer and several other tools to ease development.
|
|
|
|
## Instructions to build with make
|
|
|
|
### Prerequisites
|
|
|
|
1. When compiling on a Windows system, make sure the [Windows Development Tools](https://xpack.github.io/windows-build-tools/install/) are installed and added to the system path.This is required for make to work.
|
|
|
|
2. Install the [AVR toolchain](https://www.microchip.com/mplab/avr-support/avr-and-arm-toolchains-c-compilers) for your OS
|
|
|
|
3. If building the binary with make, initiate the contained arduino\_core submodule and the required core contained within that submodule by running
|
|
```sh
|
|
git submodule update --init --recursively
|
|
```
|
|
|
|
### Build Instructions
|
|
Make sure to add `WINDOWS=1` when building on Windows!
|
|
|
|
1. Run following command to build the software.
|
|
|
|
```sh
|
|
make all -j
|
|
```
|
|
|
|
2. Run following command to clean up the directories
|
|
|
|
```sh
|
|
make clean -j
|
|
```
|
|
|
|
## Instructions build with Sloeber
|
|
|
|
### Prerequisite
|
|
|
|
1. Install [Eclipse for C/C++ developers](https://www.eclipse.org/downloads/packages/installer)
|
|
|
|
2. Install the Eclipse Sloeber plugin by going to Help → Eclipse Marketplace and searching for Sloeber V4
|
|
|
|
3. Set up the plugin for the used board and install all required libraries.
|
|
|
|
|
|
|