Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you want to learn the SCCharts langugage first, you can follow these links:

...

You have to install the plugin manually via Help > Install new Software... . Use the following update site: http://eclipse.baeyens.it/update/V4/nightly

The installation might take a few minutes because it will install the Arduino Tools as well as required software such as the CDT. Furthermore it will download the newest version of the Arduino software and libraries.

...

After the modeling is done, the project can be built. Select Project > Build Project. This will create a new folder kieler-gen with the compiled model file. Further the wrapper code for the model is processed. After the build finished sucessfully, the ino file for the project has been updated with the new wrapper code for the model, and thus the project can be deployed to the Arduino board. The Eclipse Arduino Plugin provides an upload button for this task in the toolbar.

...

Excluding the simulation folder from the CDT build

A simulation of models is created as part of a build inside kieler-gen/sim/bin. The files inside the sim folder are compiled separately and should not be compiled using the CDT. Otherwise errors will occur, for example because every simulation has its own main function and the CDT expects only one for the project.

Thus the folder kieler-gen/sim has to be excluded from the CDT build. Therefore select the folder and do Right Click > Resource Configurations > Exclude From Build. To use these simulations

Simulating the model

To use the simulation inside the folder kieler-gen/sim/bin, first change to the Simulation Perspective, which provides new buttons in the toolbar. The executables in the bin folder can then be launched via Right Click > KIELER Simulation. The output of a running simulation can be seen in the Data Pool View.

...

IssueTypical Error MessagesDescriptionSolution
The upload protocol is not setavrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

You launch a project and there is no different behaviour on your Arduino device, although there are changes in code.

You try to launch the project and compilation finishes successful. However The upload fails because the upload protocol is not correctly configured.

Go to the project properties and select Default in the field Upload Protocol (Right click on project > Properties > Arduino > Arduino Board Selection)
The sim folder is not excluded from the CDT buildProblem markers on files inside the folder kieler-gen/simThe CDT tries to compile the simulation of models as part of a build, which causes problems.Select the sim folder and do Right Click > Resource Configurations > Exclude From Build