Difference between revisions of "SDIN Boards"

From RobolaboWiki
Jump to: navigation, search
Line 84: Line 84:
  
 
<h3> Lets now install C/C++ Developping tools </h3>
 
<h3> Lets now install C/C++ Developping tools </h3>
 +
 
Go to Help -> Install New Sofware --> add <br>
 
Go to Help -> Install New Sofware --> add <br>
 
- Name: CDT-Mars <br>
 
- Name: CDT-Mars <br>
 
- Location: http://download.eclipse.org/tools/cdt/releases/8.8 <br>
 
- Location: http://download.eclipse.org/tools/cdt/releases/8.8 <br>
<br>
+
 
 +
 
 
- Click Ok <br>
 
- Click Ok <br>
 
- Select: CDT Optional Features -> C/C++ GDB Hardware Debugging <br>
 
- Select: CDT Optional Features -> C/C++ GDB Hardware Debugging <br>
Line 94: Line 96:
  
 
<br>
 
<br>
Lets install GNU ARM Plugins
+
<h3> Lets now install GNU ARM Plugins </h3>
Go to Help -> Installa New Sofware --> add
+
 
- Name: GNU ARM Eclipse Plugins
+
Go to Help -> Installa New Sofware --> add <br>
- Location: http://gnuarmeclipse.sourceforge.net/updates
+
- Name: GNU ARM Eclipse Plugins <br>
- Click Ok
+
- Location: http://gnuarmeclipse.sourceforge.net/updates <br>
- Select All
+
 
- Next, Next, Agree, Finish
+
 
- Accept all not know
+
- Click Ok <br>
- Restart
+
- Select All <br>
 +
- Next, Next, Agree, Finish <br>
 +
- Accept all not know <br>
 +
- Restart <br>
  
  

Revision as of 11:29, 19 February 2016

Base Environment

Install Compiler gcc-arm-none-eabi

Download last version of GCC ARM Embedded from: https://launchpad.net/gcc-arm-embedded/+download

Untar the compiler:

tar -xvjf gcc-arm-none-eabi-<VERSION>.tar.bz2

Copy it to a common place:

sudo cp -r gcc-arm-none-eabi-<VERSION> /opt/compilerNucleoST

Install OpenOCD On-Chip Debugger

Instal dependencies:

sudo apt-get install flex bison libgmp3-dev libmpfr-dev libncurses5-dev libmpc-dev autoconf texinfo build-essential \\
libftdi-dev libusb-1.0-0-dev libexpat1-dev

Download last version of Openocd from: http://openocd.org/

Untar openocd:

tar -xvzf openocd-<VERSION>.tar.gz

Go into the directory:

cd openocd-<VERSION>

Configure openocd compilation:

./configure --prefix=/opt/openocd/ --enable-jlink --enable-amtjtagaccel --enable-ftdi --enable-buspirate --enable-stlink \\ 
--enable-ftdi --enable-rlink

Compile it:

make

Install:

sudo make install

Prepare its use according to udev:

sudo cp -r contrib/openocd.rules /etc/udev/rules.d/90-jtag.rules
sudo udevadm control --reload-rules

Eclipse Environment

It is mandatory to install the Base Environment first

Install Eclipse

Download last version of Eclipse IDE for C/C++ Developers from: http://www.eclipse.org/downloads/

Untar eclipse:

tar -xvzf eclipse-cpp-mars-1-linux-gtk-x86_64.tar.gz

Go into directory and execute eclipse:

cd eclipse
./eclipse

Define workspace (e.g. /home/<USER>/stm32EclipseWorkspace

Lets now install C/C++ Developping tools

Go to Help -> Install New Sofware --> add
- Name: CDT-Mars
- Location: http://download.eclipse.org/tools/cdt/releases/8.8


- Click Ok
- Select: CDT Optional Features -> C/C++ GDB Hardware Debugging
- Next, Agree, Finish
- Restart


Lets now install GNU ARM Plugins

Go to Help -> Installa New Sofware --> add
- Name: GNU ARM Eclipse Plugins
- Location: http://gnuarmeclipse.sourceforge.net/updates


- Click Ok
- Select All
- Next, Next, Agree, Finish
- Accept all not know
- Restart


Import Project

Set OpenOCD

Set GDB