Diferencia entre revisiones de «CodeBlock IDE and PIC microcontrollers»

De WikiRobotics
Saltar a: navegación, buscar
(Installation on Windows 7 / windows XP)
(Compiling the "hello world" program)
Línea 42: Línea 42:
 
== Compiling the "hello world" program ==
 
== Compiling the "hello world" program ==
  
 +
* Descargar el proyecto de ejemplo: [http://www.iearobotics.com/downloads/2010-08-19-codeblocks-pic/codeblocks-ledon.zip codeblocks-ledon.zip]
 +
* Descomprimirlo
 +
* Entrar en el directorio ''ledon''
 +
* Abrir el proyecto con ''codeblocks''
 +
* Compilar con ''Build/build''
 +
* En el directorio '''ledon/bin/Release''' estará el fichero '''ledon.hex''' que se puede descargar en las tarjetas ''Skypic/Skycube''
 +
 +
{|
 +
|  [[Archivo:Pantallazo-codeblocks-ubuntu-linux-10 04.png|thumb|200px|Codeblocks compilando el ejemplo ledon en Ubuntu/Linux 10.04 (''click para ampliar'')]]
 +
|  [[Archivo:CodeBlock-MacOS-X-Snow-Leopard-r1.png|thumb|200px|Codeblocks compilando el ledon en MacOS X Snow Leopard (''Click para ampliar'')]]
 +
|}
 +
 +
{|
 +
| [[Archivo:Pantallazo-codeblocks-ledon-windows.png|thumb|200px|Codeblocks compilando el ledon en Windows XP (''Click para ampliar'')]]
 +
| [[Archivo:Pantallazo-codeblocks-ledon-windows7.jpg|thumb|200px|Codeblocks compilando el ledon en Windows 7 (''Click para ampliar'']]
 +
|}
  
 
== Links ==
 
== Links ==

Revisión del 04:37 20 feb 2011

Code-blocks-pic-logo.png

Introduction

Code::Blocks is a multiplatform open source C/C++ IDE. It can be used with different compilers and cross-compilers. The Code::Block IDE can be used to program the PIC microcontrollers.

Installation on linux platforms

Ubuntu 10.04/10.10

CodeBlocks configuration in Linux (Click to enlarge)

Installation

The Code::Blocks IDE is in the ubuntu's repositories. It can be easily installed by means of the ubuntu's software center or Synaptic.

Code::Blocks quick installation. Just click on the link to automatically install Code::Blocks

Optionally it can be installed by means of apt-get:

 sudo apt-get install codeblocks

Configuration

(See the picture on the right)

  • Start the CodeBlocks (Applications/programming Ubuntu menu)
  • Click on Settings/Compiler and debugger
  • In the top drop-down menu chose "SDCC Compiler"
  • Click on the tab "Toolchain executables"
  • In the dialog "Compiler's installation directory" write /usr/bin
  • Click on Accept button
  • The codeBlocks is ready!!!!

Installation on Windows 7 / windows XP

The installation is straightforward. Just download and execute the following .exe file:

CodeBlock for Windows: codeblocks-10.05-setup.exe

Compiling the "hello world" program

  • Descargar el proyecto de ejemplo: codeblocks-ledon.zip
  • Descomprimirlo
  • Entrar en el directorio ledon
  • Abrir el proyecto con codeblocks
  • Compilar con Build/build
  • En el directorio ledon/bin/Release estará el fichero ledon.hex que se puede descargar en las tarjetas Skypic/Skycube
Codeblocks compilando el ejemplo ledon en Ubuntu/Linux 10.04 (click para ampliar)
Codeblocks compilando el ledon en MacOS X Snow Leopard (Click para ampliar)
Codeblocks compilando el ledon en Windows XP (Click para ampliar)
Codeblocks compilando el ledon en Windows 7 (Click para ampliar

Links

News

  • Feb/20th/2011: This page is started!