Xavier - 2018-04-15

** Requirements and dependencies**

As for the time of the 0.1 release there are some requirements you need to fulfill in order to use this software:

  1. Arduino 1.8.5 for Linux 64 bits
  2. Arduino-core 2:1.0.5
  3. Arduino-mk 1.5-2

Arduino 1.8.5
It's included in the downloaded project bundle.

Arduino-core 2:1.0.5
As per Linux Mint 18.3 this version is installed from the official repositories. It's known that for Linux Mint XFCE 17.3 the installed version is :1.0.5 which will not work.

Arduino-mk 1.5-2
As per Linux Mint 18.3 this version is installed from the official repositories. Arduino-core is installed along Arduino.mk. It's recommended to install the "screen" package as well:
sudo apt install arduino.mk screen

Testing
Locate the testing project:
/your/arduino1.8.5/installation_folder/Libraries/FreeRTOS/examples/Blink_DynamicTask

Modify the ARDUINO_DIR variable in the Makefile to point to your arduino1.8.5 installation:
ARDUINO_DIR = /your/arduino1.8.5/installation_folder

Open a terminal and type:
make

The test program should build.

If you want to test the other example you must first set to 1 the FreeRTOS flag
configSUPPORT_STATIC_ALLOCATION
which is located at
/your/arduino1.8.5/installation_folder/Libraries/FreeRTOS/src
Then in the terminal move to the folder Blink_StaticTask and type again:
make

Clean the mess
Type
make clean

Uploading your program
If your chip already have the bootloader then you can upload your program typing:
make upload

Serial terminal
Type
make monitor
to open a serial terminal. Type ^a + k to exit.

Uploading the program with USBASP
If you don't have or don't want to use the bootloader, then you can upload the .hex executable right away through the USBASP interface. For more information you can follow my tutorial (in spanish):
https://fjrg76.wordpress.com/2017/07/06/arduino-desde-la-linea-de-comando-de-linux-y-usbasp/