Tools/Eclipse4STM32

(Difference between revisions)
Jump to: navigation, search
Line 24: Line 24:
 
= openocd =
 
= openocd =
 
== Linux ==
 
== Linux ==
* install openocd (should be in the repository of your favorite distribution)
+
* install openocd (should be in the repository of your favorite distribution)
* create the file /etc/udev/rules.d/10-jtag.rules whith the following content:
+
* create the file /etc/udev/rules.d/10-jtag.rules whith the following content:
 +
 
 
<source lang='bash'>
 
<source lang='bash'>
 
# STM32f407 discovery (stlink and DFU mode)
 
# STM32f407 discovery (stlink and DFU mode)
Line 34: Line 35:
 
ATTRS{idProduct}=="df11", ATTRS{idVendor}=="0483", MODE="666", GROUP="plugdev"
 
ATTRS{idProduct}=="df11", ATTRS{idVendor}=="0483", MODE="666", GROUP="plugdev"
 
</source>
 
</source>
* make sure you're in the plugdev group
+
* make sure you're in the plugdev group
 
== Windows ==
 
== Windows ==
* Download and install [http://www.freddiechopin.info/en/download/category/4-openocd?download=99%3Aopenocd-0.7.0 openocd-0.7.0]
+
* Download and install [http://www.freddiechopin.info/en/download/category/4-openocd?download=99%3Aopenocd-0.7.0 openocd-0.7.0]
* Unzip into c:\xdev\tools\openocd\0.7 (openocd-0.7.0.exe should be in C:\xdev\tools\openocd\0.7.0\bin)
+
* Unzip into c:\xdev\tools\openocd\0.7 (openocd-0.7.0.exe should be in C:\xdev\tools\openocd\0.7.0\bin)
* rename openocd-0.7.0.exe into openocd.exe
+
* rename openocd-0.7.0.exe into openocd.exe
 +
 
 +
= Eclipse =
 +
Tested with eclipse 4.3 (Kepler), but at least works with Juno (4.2) and Indigo (4.1)
 +
* Help -> Install new software ... -> work with "-- All available sites --" and add at least :
 +
  * Programming Languages : C/C++ development Tools
 +
  * Mobile and Device Development : C/C++ Hardware Debugging
 +
  * Subversive SVN Team provider + subversive connector
 +
* After the setup and restart, subversive should ask to choose a connector, choose:
 +
  * SVNkit 1.7.9

Revision as of 10:50, 15 July 2013

Contents

Toolchain

The toolchain we use comes from https://launchpad.net/gcc-arm-embedded. This is a toolchain maintained by ARM employees and is available for Linux, Windows and OS X.

Linux (Ubuntu based)

There is a PPA for gcc-arm-embedded.

sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
sudo apt-get update
sudo apt-get install build-essential gcc-arm-none-eabi

Linux (generic)

Windows

openocd

Linux

  • install openocd (should be in the repository of your favorite distribution)
  • create the file /etc/udev/rules.d/10-jtag.rules whith the following content:
# STM32f407 discovery (stlink and DFU mode)
ATTRS{idProduct}=="cff8", ATTRS{idVendor}=="0403", MODE="666", GROUP="plugdev"
ATTRS{idProduct}=="3748", ATTRS{idVendor}=="0483", MODE="666", GROUP="plugdev"
 
# Amontec JTAGkey 2 
ATTRS{idProduct}=="df11", ATTRS{idVendor}=="0483", MODE="666", GROUP="plugdev"
  • make sure you're in the plugdev group

Windows

  • Download and install openocd-0.7.0
  • Unzip into c:\xdev\tools\openocd\0.7 (openocd-0.7.0.exe should be in C:\xdev\tools\openocd\0.7.0\bin)
  • rename openocd-0.7.0.exe into openocd.exe

Eclipse

Tested with eclipse 4.3 (Kepler), but at least works with Juno (4.2) and Indigo (4.1)

  • Help -> Install new software ... -> work with "-- All available sites --" and add at least :
 * Programming Languages : C/C++ development Tools
 * Mobile and Device Development : C/C++ Hardware Debugging
 * Subversive SVN Team provider + subversive connector
  • After the setup and restart, subversive should ask to choose a connector, choose:
 * SVNkit 1.7.9
Personal tools
Namespaces
Variants
Actions
Navigation
Browse
Toolbox