Sublime Text 2


These instructions are written for Windows but should work similarly in Linux and Mac OS X

Aery32 Framework comes with the default Sublime Text 2 project file which you can use straight away. The quickest way to start the project is to browse to the project directory and open aery32.sublime-project file using the right click and selecting Open with Sublime Text 2.

Open ST2 project file with right click

After then change the default build system to Aery32 from Tools/Build System.

Change ST2 build system to Aery32

Shortcut keys

Use Ctrl+B and Ctrl+Shift+B shortcut keys to compile the project and to program the board, respectively.

The board is programmed via ST2

For other make targets press Ctrl+Shift+P and write build. Then select the desired target from the list.

Building with debug statements in ST2

When you want to open a file, let’s say aery32/aery32/gpio.h, press Ctrl+P and write gpio. Then select the file from the list. Of course you can also use the folder tree from the left-hand side if you like. Btw. it can be switched on and off with Ctrl+K+B.

Open files quickly in ST2

Autocompletion with SublimeClang

SublimeClang provides a neat autocompletion for Aery32 project. With this plugin you don’t have to remember all the function names and their parameters completely. Just write the beginning of the function, for example gpio_t, and you get a list of functions. Press Ctrl+Space to move on the list and Tab to select the function. When you have set the first param, you can press Tab again to jump to the next one.

Example of ST2 autocompletion with SublimeClang

SublimeClang prerequisites for the clang static analyzer is to have clang installed and set in your path. The other functionality works without having the clang binaries installed. Here we only use the “other functionalities” and thus do not need clang. So install SublimeClang as instructed in its README without clang. In Linux you can also skip the additional prerequisities. Then open aery32.sublime-project and add the following in settings. If you are on Linux or Mac OS X, alter the AVR Toolchain installation directory appropriately.

"sublimeclang_enabled": true,
"sublimeclang_options": [
        "-IC:/Program Files (x86)/Atmel/AVR Tools/AVR Toolchain/avr32/include",
        "-IC:/Program Files (x86)/Atmel/AVR Tools/AVR Toolchain/lib/gcc/avr32/4.4.3/include",
        "-IC:/Program Files (x86)/Atmel/AVR Tools/AVR Toolchain/lib/gcc/avr32/4.4.3/include-fixed",
        "-IC:/Program Files (x86)/Atmel/AVR Tools/AVR Toolchain/lib/gcc/avr32/4.4.3/include/c++",
        "-IC:/Program Files (x86)/Atmel/AVR Tools/AVR Toolchain/lib/gcc/avr32/4.4.3/include/c++/avr32",
        "-ccc-host-triple", "mips",
"sublimeclang_dont_prepend_clang_includes": true,
"sublimeclang_show_output_panel": false,
"sublimeclang_show_status": false,
"sublimeclang_show_visual_error_marks": true
ST2 SublimeClang settings for AVR32 Toolchain

Project Versions

Table Of Contents

Previous topic

Eclipse Juno

This Page