Tools/Eclipse4STM32
(Difference between revisions)
(Created page with "{{TOC right}} == Toolchain == The toolchain we use comes from [https://launchpad.net/gcc-arm-embedded https://launchpad.net/gcc-arm-embedded]. This is a toolchain maintained b...") |
|||
Line 1: | Line 1: | ||
{{TOC right}} | {{TOC right}} | ||
− | + | = Toolchain = | |
The toolchain we use comes from [https://launchpad.net/gcc-arm-embedded https://launchpad.net/gcc-arm-embedded]. This is a toolchain maintained by ARM employees and is available for Linux, Windows and OS X. | The toolchain we use comes from [https://launchpad.net/gcc-arm-embedded https://launchpad.net/gcc-arm-embedded]. This is a toolchain maintained by ARM employees and is available for Linux, Windows and OS X. | ||
Line 21: | Line 21: | ||
* unzip in c:\xdev\tools\gnuwin\make\3.81 (make.exe should be in c:\xdev\tools\gnuwin\make\3.81\bin) | * unzip in c:\xdev\tools\gnuwin\make\3.81 (make.exe should be in c:\xdev\tools\gnuwin\make\3.81\bin) | ||
* add make.exe to your PATH. | * add make.exe to your PATH. | ||
+ | |||
+ | = 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: | ||
+ | <source lang='bash'> | ||
+ | # 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" | ||
+ | </source> | ||
+ | * make sure you're in the plugdev group | ||
+ | == Windows == | ||
+ | * 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) | ||
+ | * rename openocd-0.7.0.exe into openocd.exe |
Revision as of 10:30, 15 July 2013
|
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)
- Download gcc-arm-none-eabi-4_7-2013q2-20130614-linux.tar.bz2
- Uncompress into /opt (arm-none-eabi-ld should be in /old/opt/xdev/gcc-arm-none-eabi-4_7-2013q1/bin/)
Windows
- download gcc-arm-none-eabi-4_7-2013q2-20130614-win32.zip
- unzip in C:\xdev\tools\gcc-arm\4.7_2013q2 (arm-none-eabi-gcc.exe should be in C:\xdev\tools\gcc-arm\4.7_2013q2\bin)
- download gnuwin-make-3.81.zip
- unzip in c:\xdev\tools\gnuwin\make\3.81 (make.exe should be in c:\xdev\tools\gnuwin\make\3.81\bin)
- add make.exe to your PATH.
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