Month: June 2015




Come on with principals characteristics of sublime text in this tutorial we will using Windows and Linux

Hello word

we start with “hello word” in c:

Paste this code in sublime:

“hello word” in c++:

Parts of SubliemText




Build Systems 

Sometimes your computer don’t include compiler script for C++ or C, for you include the Build System in Sublime Text go to Tools>Build System>New Build System, change that text for next

For Windows:

For Linux:

If you don’t know of type of compiler that you need or if in your system already installed a compiler go to CompilerTutorial

Principals features 

Use Multiple Selections to rename variables quickly.
Here Ctrl+D is used to select the next occurrence of the current word.


Make batch edits with Multiple Selections.
Here Ctrl+Shift+L is used to split a selection into lines, and each line is then edited simultaneously.


Use Goto Anything to quickly navigate between files, even in the largest projects.
Ctrl+P shows Goto Anything, and typing then filters on file and directory names.


The Command Palette gives fast access to functionality.
Here Ctrl+Shift+P is used to show the Command Palette, “ssc” (short for Set Syntax: C) is used set the syntax of the current file to C.




The Sublime Text package manager that makes it exceedingly simple to find, install and keep packages up-to-date

The simplest method of installation is through the Sublime Text console. The console is accessed via the ctrl+` shortcut or the View > Show Console menu. Once open, paste the appropriate Python code for your version of Sublime Text into the console.




SublimeText is very personable but how to configure this

come on install a theme for sublime first Ctrl+Shift+P search Package  Control: Install Package for this type-> P K I



type – > Theme – Flatgrammer

and open Preferences >> Settings –  User


add this line

Untitled-7select color scheme







How to start with ODROID C1

odroidhk_green 201412051744489785

  1. Characteristics of ODRIOD
  • Amlogic ARM® Cortex®-A5(ARMv7) 1.5Ghz quad core CPUs 
  • Mali™-450 MP2 GPU (OpenGL ES 2.0/1.1 enabled for Linux and Android)
  • 1Gbyte DDR3 SDRAM
  • Gigabit Ethernet
  • 40pin GPIOs
  • eMMC4.5 HS200 Flash Storage slot / UHS-1 SDR50 MicroSD Card slot
  • USB 2.0 Host x 4, USB OTG x 1,
  • Infrared(IR) Receiver
  • Ubuntu 14.04 or Android KitKat

ODROID-C1-Especificaciones Setup

  1. Download IMG from odrio official web page this is the link: Ubuntu14.04
  2. Write img with Win32DiskImager Download link: Win32DiskImage(Windows)
  3. Write img with Command line in linux

Firts step:

  • Connect your microSD card and open terminal
  • Write in your terminal and press Enter:
  • you will see for example this /dev/mmcblk0p1 or /dev/sdd1
  • if your sd card has been previously written  with RaspberryPi img or ODROID img you have two partitions.(/dev/mmcblk0p1,/dev/mmcblk0p2 or  /dev/sdd1, /dev/sdd2). Remember sd’b’1 is your disk where ‘ b ‘ is letter of your disk and probably in your case the letter of disk be a, b ​​, c, d .. etc (example sdb , sde or sba )
  • Run in the terminal:

  • Replace sdd1 for the name of your disk you viewed  in the previous step
  • move to image directory in the terminal run this

  • Remplace “odroid_image.img” with your image’s name (ubuntu-14.04.2lts-lubuntu-odroid-c1-20150401.img) and “sdd” with your disk’s name, remember write sdd not sdd1 or mmcblk0 not mmcblk0p1.
  • The dd command don’t show progress of this process
  • For show progress follow this steps
  • run this in other terminal for show the progress
  • Other option is pv (Pipe Viewer) example:
  • Check that “pv” are install previously to continue.


  1. Connect to 5V power supply
  2. Connect hdmi
  3. Connect mouse and keyboard
  4. Enjoy

primeros_pasos_odroid-c1_inicio-1024x576   Compile

  1. Open your linux develepment system
  2. Install Sublimetext : How to install

Now come on give to an short descrioption of how to works compile  in linux and cross compile for embedded systems (RaspbberryPi, Odriod, BeagleBone… etc). In Windows compile your code in very easy but in Linux is not so easy, starting with short concepts of Linux and your Comparing with Windows(go direct to cross compile if you usually use Linux). First compile hello word in your system: In C:

In C++:

Save this program in your testing directory, open your terminal, move to testing directory and run this command. for C:

Build an executable file hello for C++:

Build an executable file hello If you get a error of not found gcc or g++ you install build-essentials

For run example write ./ after hello and Enter

This example is a introduction for adapting to linux environment. Cross compile the concept of cross compile is reference of compiling in a system(amd64 or i386) for other system for example ARM, this means that program compiled in amd64 doesn’t run in i386 or in ARM.

Well let’s start with the cross compile for ODROID-C1:




Copyright © 2018 EngineeringHall

Theme by Anders NorenUp ↑