Eclipse and stm32fvl

I am using eclipse with the stm32vldiscovery board and the summon tool chain. Everything with openocd 0.6.0 seems to work well including flashing the chip with this script:

target remote localhost:3333
monitor reset halt
monitor poll
monitor flash probe 0
monitor flash write_image /home/user/arm/ldiscovery/Debug/vldiscovery.bin 0x8000000

However the debug fails on start up with this message:

Error in final launch sequence

Failed to execute MI command:

-gdb-set target-async off

Error message from debugger back end:

Cannot change this setting while the inferior is running.

Cannot change this setting while the inferior is running.

I can debug the program with the https://github.com/texane/stlink st-util without any problems.

In summary I was using Eclipse with the [Gnu ARM Eclipse plugin and the [summon-arm-toolchain.

As explained [here openocd required [patching.

I removed the “target” command from the .gdbinit file as the eclipse plugin already issues this command.

.gdbinit

monitor reset halt
monitor poll
monitor flash probe 0
monitor flash erase_address 0x8000000 0x10000
monitor flash write_image /home/user/arm/ldiscovery/Debug/ldiscovery.hex 0 ihex

Works occasionally so still having problems.](openocd_gpacket_bug_patch.diff - Pastebin.com)](Introduction: Programming STM32 ARMs under Linux: A Tutorial from Scratch)](GitHub - esden/summon-arm-toolchain: This project is not under active development any more. Consider using https://launchpad.net/gcc-arm-embedded instead! A very simple build script for bare metal arm toolchain. NO LINUX!)](http://gnuarmeclipse.livius.net/blog/)