title: STM32 GDB/OpenOCD Commands and Initialization for Flash and Ram Debugging
body: <p>I am looking for assistance with the proper GDB / OpenOCD initializion and running commands (external tools) to use within Eclipse for flash and RAM debugging, as well as the proper modifications or additions that need to be incorporated in a makefile for flash vs RAM building for this MCU, if this matters of course.</p>
  <p>MCU: STM32F103VET6</p>
  <p>I am using Eclipse Helios with Zylin Embedded CDT, Yagarto Tools and Bins, OpenOCD 0.4, and have an Olimex ARM-USB-OCD JTAG adapter.</p>
  <p>I have already configured the ARM-USB-OCD and added it as an external tool in  Eclipse. For initializing OpenOCD I used the following command in Eclipse. The board config file references the stm32 MCU:</p>
  <pre><code>openocd -f interface/olimex-arm-usb-ocd-h.cfg -f board/stm32f10x_128k_eval.cfg
  </code></pre>
  <p>When I run this within Eclipse everything appears to be working (GDB Interface, OpenOCD finds the MCU, etc). I can also telnet into OpenOCD and run commands.
  So, I am stuck on the next part; initialization and commands for flash and RAM debugging, as well as erasing flash.</p>
  <p>I read through several tutorials, and scoured the net, but have not been able to find anything particular to this processor. I am new to this, so I might not be recognizing an equivalent product for an example.</p>