Switch from KEIL to Eclipse + GCC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-10-19 7:39 AM
Switch from KEIL to Eclipse + GCC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:11 AM
Hi Afi,
Download ''Eclipse IDE for C/C++ Developers vonhttp://www.eclipse.org/downloads/
- Unpack it and start it.
- Click Help → Install new Software
-
Add…
( Eclipse C/C++ GDB Hardware Debugging, Eclipse C/C++ Memory View Enhancements) - Uncheck ''Group items by category'' (Otherwise you will see not all options)
- Install GNU ARM C/C++ Development Support
- Restart eclipse
- Install a GCC cross compiler, i.e the one from CodeSourcery http://www.codesourcery.com/gnu_toolchains/arm/download.html
- If you use the Amontec JTAG adapter, install OpenOCD (at least 0.4.0)
- Create a new App: File→New C Project → ARM Cross Target Application
- Under C/C++ Build → Settings, „All configurations“ select
- Behaviour → Use parallel Build (4, or optimal)
- C Preprocessor → Defined Symbols: DEBUG
-
C Compiler → Directories:
../fwlib, ../fwlib/inc (Or wherever the fwlib is)
- Miscellaneous → Lang. Standard GNU 99
- Linker → General → Script File
../fwlib/stm32f10x_hd.ld (or where your linker script is located)
- Click Run → Debug Configurations..
- Double click GDB Hardware Debugging
- Name: OpenOCD
- Main: project / application
- Debugger → GDB Command →
C:\codesourcery\bin\arm-none-eabi-gdb.exe (or where the gdb is located)
- Port-Number 3333
- Common → Display in favorites menu
- If you encounter difficulties resetting the target, add the command ''
monitor reset init'' in the startup action of the debugger.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:11 AM
Personally, I prefer the Zylin plugin. The builtin support seems just poor IMO.
Also I use Helios.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:11 AM
Hi Carste,
thanks for intensive manual. I will try these steps in few days. However, now I need to chose a wright JTAG emulator, because ulink is not supported by OpenOCD. Any suggestions? The Amontec JTAGkey2 costs 115 euro: http://www.amontec.com/jtagkey2.shtml Is there any other JTAG emulator with lower cost? Thanks in advance. Afi- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:11 AM
Hello, I wrote a small guide here:
http://chibios.sourceforge.net/dokuwiki/doku.php?id=chibios:guides:eclipse1
The project also contains startup files, linker scripts and demos for the STM32. Giovanni