This guide is for compiling FORTE for the Raspberry Pi. For information about the parameters to be used, go to Parameters.
Raspberry Pi (RPI) is one of the most famous low-cost embedded systems. In its third generation, the Raspberry Pi 3 was launched in February 2016. It has a 1.2GHz 64-bit quad-core ARMv8 CPU, 1 GB RAM and several I/O options, among them a 40 pin header. The operating system is loaded from a SD card, so it can support many OS. The most popular one is the Debian-based Raspbian. 4diac FORTE previously used the wiringPi library, but it has changed to use the sysFs virtual file system.
This tutorial explains first how to compile 4diac FORTE in the RPI, or even cross-compile, and how to easily use the I/O Function Blocks in 4diac FORTE to control the 40 pin header.
This tutorial doesn't show the details of how to make the RPI run, but if you never used before, you should know that beside the RPI board, you need a source power that is connected to the mini-USB port and a mini-SD card. The RPI can be connected to a screen, mouse and keyboard through the HDMI and USB ports, but you also can connect to it headless, meaning that you connect through ssh using the Ethernet or a usb-wifi connector. There are plenty of tutorials on how to access the RPI, so this tutorial assumes that you have access to the command line of the RPI, through ssh or directly on it using the GUI, and that the RPI has Internet access.
You will need to add the SysFs module to the compilation. In order to that, you will need to change the setup_posix.sh file, using your preferred text editor. In the file you will find a line that starts with cmake -G "Unix Makefiles" -DFORTE_ARCHITECTURE=Posix. At the end of the line, add -DFORTE_MODULE_SysFs=ON. This will enable the interface to the 40 pin header of the RPI. Save the file, exit the editor and execute:
When no error occurs, the command creates a folder in bin/posix where all the files to compile 4diac FORTE are stored. Access the folder if not already there.
The RPI is a very powerful computer, but when developing a project, one sometimes has to compile 4diac FORTE many times. As the RPI is slow compared to the power of a desktop computer, cross-compiling is useful. It allows to compile on your desktop machine, and then send the executable to the RPI.
You will need the 4diac FORTE source code, and the same additional tools used in the preparation, except CMake because CMake-GUI will be needed in this case.
A list with all variables of 4diac FORTE in red should be shown in CMake as the picture below.
Now that you installed the required tools, it's time to start using them. Take a look at the following tutorials:
Step 0 - 4diac IDE Overview
If you want to compile 4diac FORTE for another platform or want to know more about that, here's a quick link back:
Install Eclipse 4diac
If you want to go back to the Start Here page, we leave you here a fast access
Where to Start
Or Go to top