is there a way how to setup Eclipse + gnu gcc + debuger for ARM Cortex M3/M4 based micros (Stellaris, Kinetis)?
Best regards, Peter
is there a way how to setup Eclipse + gnu gcc + debuger for ARM Cortex M3/M4 based micros (Stellaris, Kinetis)?
Best regards, Peter
If toolchain is gcc based and debugger gdb based, then probably yes. Just use eclipse with CDT, set up cross compile project, enter toolchain prefix (like arm-eabi- or something) etc... When compiled use create "gdb hardware debugging" launch configuration, enter proper gdb command to use (probably something-gdb) and you will probably be fine.
There is a fairly comprehensive guide to setting up an Eclipse+GNU toolchain for ARM here:
http://www.stf12.org/developers/ODeV.html
It gives a good run-down of the setup for the big three (Mac/Win/Lin), and is pretty easy to follow. Some intuition is required when integrating OpenOCD into Eclipse, however.
According to "Programming the Stellaris Launchpad with GNU/Linux", you can use lm4tools for the target, summon-arm-toolchain to get the compiler and even use Stellarisware. There's also jsnyder's gcc project on github.
I'm in the process of finding a suitable toolchain as well, but will not touch Eclipse or any messy installers. For that path, you may want to look at CodeSourcery. Eclipse comes with the trial cersion. I'm not looking for Kinetis at the moment myself. There's also Yagarto for mswin and OSX.
There is some talk about interfacing to the Stellaris debugger. The lmicdiusb, "TCP/USB bridge created by T"I should let GDB communicate with the Stellaris Launchpad ICDI. I'm not yet sure how tied that is to the particular board or chip.
Update: I've found that the Emdebian toolchains work perfectly well for Cortex (Thumb) targets. Stellarisware and CMSIS build essentially out of the box (with the right compiler name set). These are integrated and (for Debian) thus the cleanest way to get the toolchain. I believe on Ubuntu, you have the same arm compilers in main.
Update: Debian now has a "bare metal" compiler in the main distribution. It is working well for me and should have the neatest integration into other tools.