Skip to content
Snippets Groups Projects
Commit c8e532ce authored by Martin Eisenmann's avatar Martin Eisenmann
Browse files

Added RaspberryPi code generation


Signed-off-by: default avatarEisenmann <eisenmann@fortiss.org>
parent 465ae3c0
No related branches found
No related tags found
1 merge request!233951
......@@ -16,20 +16,14 @@
<h2><u><font color="#336699">Generating Code for Components and Deployments</font></u></h2>
<p><font color="red"><b>Note</b>: The <i>Deployment</i> model has been replaced with the
<i>Components-to-Hardware</i> <a href="allocations.html">allocation</a>. However, the concepts
of this documentation still apply. It be updated in a future release of AutoFOCUS3.</font></p>
AutoFOCUS supports C code generation of component architectures as well as deployments.
Currently, we only support C code generation for components with code specifications and platform architectures with the generic elements.
Full support for state and mode automata and other platforms is still work in progress.
AutoFOCUS supports C code generation of component architectures as well as allocations.
<br><br>
You can start the code generation by using the context menu of the component architecture (or the deployment, respectively).
You can start the code generation by using the context menu of the allocations.
<br><br>
<img src="./pictures/Code.Generation.Start.png">
<br><br>
You are offered the option to select a target folder, which has to be in the Eclipse workspace.
You are offered the option to select a target folder, which has to be in the Eclipse workspace but can not be the root directory.
(Please use the Storage-Perspective to create Eclipse workspace projects and folders.
If you don't already have the Storage-Perspective, you can add it by pressing the
<img src="./pictures/Button.OpenPerspective.png"> button near to the Perspective buttons, select "Other..." and then select "Storage".).
......@@ -39,18 +33,12 @@ If you don't already have the Storage-Perspective, you can add it by pressing th
<br><br>
Once the code generation is complete, you can see the result in the Storage-Perspective.
The following picture shows the result of the component architecture generation.
The following picture shows the result of the code generation.
<br><br>
<img src="./pictures/Code.Generation.Storage.View.png">
<br><br>
When can use the deployment generator to generate platform code.
<br><br>
<img src="./pictures/Code.Generation.StartDeployment.png">
<br><br>
After you have used the deployment generator, you will get a single folder for each execution unit as well as each unit's synthesis code (system.h, system.c) and supplementary files (e.g. Makefile).
<br><br>
......@@ -58,6 +46,15 @@ After you have used the deployment generator, you will get a single folder for e
<br><br>
Please take care to manually delete your code-directories in the Storage-Perspective before you generate code for another project. Otherwise the new code files will simply be added to the existing ones.
<br><br>
To compile a model of the RaspberryPi platform architecture simply copy the generated code to the target hardware and run <code>./configure && make</code>. To launch the model run the resulting executable in the <code>build</code> directory.
<br><br>
To run the model the <code>libaf3pihal</code> and <code>libconf</code> libraries have to be installed.
Depending on the deployed Sensors and Actuators some additional libraries have to be installed on the hardware as well.
<ul>
<li>Bricklet: <code>libbrick</code></li>
<li>Motor Control: <code>libvesc</code></li>
</ul>
</font>
</body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment