Eclipse OpenOCD GDB Debugging for the Manage Board

gdb1
gdb2
gdb3
gdb4
gdb5

Always start OpenOCD in a terminal (openocd -s ~/Desktop/FlexSEA/embedded-arm/openocd-bin/share/openocd/scripts/ -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg) first.
 
To program the chip, build in Release mode then, in a terminal: openocd -s ~/Desktop/FlexSEA/embedded-arm/openocd-bin/share/openocd/scripts/ -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg -c init -c “reset halt” -c “sleep 100” -c “wait_halt 2” -c “flash write_image erase manage.elf” -c “sleep 100” -c “verify_image manage.elf” -c “sleep 100” -c “reset run” -c “shutdown”