I am using all opensource tools with an STM32VLDISCOVERY (using the on-board ST-link) by roughly following the instructions here:
http://www.stf12.org/developers/ODeV.html I'm using CodeSourcery Lite, Eclipse with the ARM plugin, and OpenOCD, from PCLinuxOS 2011. There are a lot of points to get hung up following those instructions though: -OpenOCD must be pulled from the GIT repository, as you need a very new version, and must be compiled using ./configure --enable-maintainer-mode --enable-stlink. You can then run it with openocd -f board/stm32vldiscovery.cfg -Trying to get everything working at once through Eclipse is a pain. In fact, there's no reason you even *need* Eclipse -- your firmware projects will actually cross-build just fine by typing ''make'', assuming you have a proper makefile. Instead, get OpenOCD sending commands to the ST-link first. Test it through its telnet interface, (you should at least be able to start and stop the eval board from running), then get arm-none-eabi-gdb connected to it (easy). -Instead of using the example projects at the website mentioned above, I started with a much simpler one that I found... somewhere. Try googling for a template project. Like before, trying to start with a complicated project that uses RTOS just gives you more chances to have problems that you will spend time trying to explain. I am only a couple of days into using this toolchain, so I will know more about it in the future, but so far it appears to be pretty solid. If not, there are other (opensource) options for each one of the components.
Since this is the most viewed thread in STM32 forum, it's a good idea to refresh our options.
I use EmBlocks (www.emblocks.org).It's a Code::Blocks based nice turn-key IDE + ARM-GCC solution. And I have to tell you, it's much much better than many IDE's from various vendors. We have a paid compiler + IDE in our hands but I even didn't bother to start our license.It has a nice wizard and you could run your classicint main(void)
{
while(1)
{
}
}code just in minutes. Blinky could take a couple more minutes to days according to your ARM and STM32 experience levels. I highly recommend it.
I am new in this community nad ST micocontroller, i am working wityh STM32F302BVT controler ,i have t ostart its software part,can you guide me from where i can get the demo code or examples code for the STM32F family ,i seached on ST website but found nothing, Please guide me I shall be very much thankful to you for this Thanks Lakhwinder
EmBlocks 2.30 - free run 2 seconds, assembly firmware - as quickly as possible, start the firmware - 1 second, has no hidden spyware and crap in the system.
Weighs 40 meters.For personal happiness - you can write your own plugins, the interface is almost completely similar to Code :: Blocks, there is the same on the forum you can find examples of plug-ins in the clear.Template Wizard in the clear, for those who will start at high speed.For yet a project successfully crashed, therefore it is too late - Download.Translation from Russian by Google, the meaning of certain phrases may cause injury.