I am in possession of an STM32F4Discovery board, which contains both an STM32F4 microcontroller, and an ST-LINKv2 debugger interface. I would like to do some simple C programming on this setup, and would like to use freely available tools to do it.
Here's what I do know:
- Eclipse can be configured to cross-compile for various ARM targets using a variety of toolchains, such as YAGARTO, or others.
- Eclipse can use GDB to do remote debugging.
- OpenOCD provides a GDB server.
- OpenOCD (in the latest version) supports both the ST-LINKv2, and the STM32F4Discovery board specifically (there is a script for this board included).
Here's what I don't know: how to put these pieces together into a coherent whole. I believe that all the necessary moving parts exist, but I'm at a loss on how to assemble them. I have found bits and pieces, often beginning with things like, "Install Eclipse Indigo". Is there a simple tutorial, or a list of steps, or things to check?