Eclipse Micro

Authors:
1. Jorge Aparicio
2. Victor Paredes

Intro

This is a section about how to configurate Eclipse to use ….

Link

Requeriments:

The open development platform. Tested with Indigo version.

How to install and Configurate:

1. CodeSourcery

sh arm-2011.03-42-arm-none-eabi.bin
  • If the error message “ERROR: DASH shell not supported as system shell” is displayed, use this command to change the shell (When asked to use dah as default shell select NO.):
sudo dpkg-reconfigure -plow dash
When asked to use dah as default shell select NO.
Ensure that the Do not modify PATH option is selected.
  • After the setup finished, you modify the PATH environment in order
    to make the tools (compiler, linker, etc.) available to all applications.
    Each Linux distribution has a set of per-user configuration files used to
    customize the user environment at login.
    Ubuntu uses the .profile file.
  • Open the .profile file in your home folder.
  • Append the following code at the end of file.
# set PATH to include the CodeSourcery arm-none-eabi toolchain.
if [ -d "$HOME/Applications/CodeSourcery/Sourcery_G++_Lite/bin/" ] ; then
    PATH="$HOME/Applications/CodeSourcery/Sourcery_G++_Lite/bin/:$PATH"
fi
linux_setup_codesourcery.jpg

2. Eclipse Indigo

Install Plug-ins:

Name Localization
GNU ARM Eclipse Plug-in http://gnuarmeclipse.sourceforge.net/updates
ZYLIN EMBEDDED shuCDT http://opensource.zylin.com/zylincdt/

If you don't know how to install plug-ins, you can check the follow images:

Configurate Openocd with Eclipse

3. Install Openocd

Terminal command Explanation
sudo apt-get install openocd Terminal command in Ubuntu
sudo apt-get install ia32-libs Necesary in some cases if we have 64bits version

After install openocd we will created a shortcut in terminal(to avoid use sudo openocd):

  1. Go to File System/etc/udev/rules.d
  2. Created a file called …
  • Now, we can do a little test about conexion and communications with:
openocd Jtag smt32f4
busblaster.cfg stm32f1x.cfg
stm32f2x.cfg stm32f4x.cfg
ujtag.cfg
  • Open in terminal inside this folder and write:
openocd -f ujtag.cfg -f stm32f4x.cfg
You will get:
openocd_jtag_test.png

dmesg
dmesg | less
dmesg | grep tty

If you work in a Virtual Machine you will need to install a driver