Difference between revisions of "Nucleo Boards"

From RobolaboWiki
Jump to: navigation, search
Line 1: Line 1:
 
<!--__NOTOC__-->
 
<!--__NOTOC__-->
  
<h1> Install Dependencies </h1>
+
<h1> Configuring the environment </h1>
  
<h2> Install Compiler </h2>
+
<h2> Install Compiler gc-arm-none-eabi </h2>
  
 
Download last version of GCC ARM Embedded from:
 
Download last version of GCC ARM Embedded from:
Line 17: Line 17:
 
<pre>
 
<pre>
 
sudo cp -r gcc-arm-none-eabi-<VERSION> /opt/compilerNucleoST
 
sudo cp -r gcc-arm-none-eabi-<VERSION> /opt/compilerNucleoST
 +
</pre>
 +
 +
<h2> Install OpenOCD On-Chip Debugger</h2>
 +
 +
Instal dependencies:
 +
<pre>
 +
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
 +
</pre>
 +
 +
Download last version of Openocd from:
 +
http://openocd.org/
 +
 +
Untar openocd:
 +
<pre>
 +
tar -xvzf openocd-<VERSION>.tar.gz
 +
</pre>
 +
 +
Go into the directory:
 +
<pre>
 +
cd openocd-<VERSION>
 +
</pre>
 +
 +
Configure openocd compilation:
 +
<pre>
 +
./configure --prefix=/opt/openocd/ --enable-jlink --enable-amtjtagaccel --enable-ftdi --enable-buspirate --enable-stlink --enable-ftdi --enable-rlink
 +
</pre>
 +
 +
Compile it:
 +
<pre>
 +
make
 +
</pre>
 +
 +
Install:
 +
<pre>
 +
sudo make install
 +
</pre>
 +
 +
Prepare its use according to udev:
 +
<pre>
 +
sudo cp -r contrib/openocd.udev /etc/udev/rules.d/90-jtags.rules
 +
sudo udevadm control --reload-rules
 
</pre>
 
</pre>

Revision as of 21:25, 17 November 2015


Configuring the environment

Install Compiler gc-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.udev /etc/udev/rules.d/90-jtags.rules
sudo udevadm control --reload-rules