Skip to content

Use discontinued Cosa framework

This section requires the embedXcode+ edition.

The embedXcode+ edition also supports the Cosa framework.

The Cosa framework is an interesting alternative to the Wiring / Arduino framework. It offers an object-oriented framework that runs on AVR-based boards.

It requires the previous installation of the Wiring / Arduino framework and runs only on AVR-based boards.

For more information about the Cosa framework,

Install the Cosa framework

If you plan to use the Cosa framework,

  • Download and install the supported versions of the Arduino IDE under the /Applications folder, as described in the section Install the Arduino platform .

  • Launch it.

  • Define the path of the sketchbook folder in the menu Arduino > Preferences > Sketchbook location.

  • Avoid spaces in the name and path of the sketchbook folder.

  • Follow the procedure Install additional boards.

  • Call the Boards Manager and check the Cosa platform is listed.

If the Cosa platform isn’t listed on the Boards Manager,

  • Open the Preferences and add the following URL on a separate line, as described in section Add URLs for new boards .
  • Select the board and click on Install.

For more information about the installation of Cosa,

Once installation is completed,

  • Check that the Tools > Boards menu on the Arduino IDE mentions the Cosa-supported boards.

For more information about the Cosa framework,

  • Please refer to the official online documentation at the Cosa website.

Create a new project

To create a new project,

  • Call the menu File > New > Project… or press Cmd+Shift+N.

  • Select the macOS option.

  • Scroll down and look for the embedXcode or embedXcode+ group.

There are five templates for the Wiring / Arduino framework, and one template for each of the other frameworks, Cosa, Edison Yocto, Edison MCU.

Select an embedXcode+ for Cosa template

If embedXcode+ for Cosa is installed and selected, another option is available.

  • Select the template embedXcode+ Cosa for the AVR-based boards running on the object-oriented Cosa framework.

Add code and header files

  • Scroll down and look for the embedXcode or embedXcode+ group.

  • Select one of the options proposed, one per framework.

Add a C++ code file or library

Based on the options selected during the installation, the embedXcode group of templates include different options.

The embedXcode+ edition provides an option for the C++ File Cosa, based on the options selected during the installation

Visit the official websites

The following section lists the name of the tools for the Cosa framework, to be installed on top of the Arduino environment.

IDE Arduino with Boards Manager