SW4STM32 + STM3210C-Eval Hello World program
A lot of problems such as these are due to reset issues.
Research the reset options in ocd config scripts.
I had to use:
reset_config none in my board level script. The board level script will call other ocd scripts so also check that none of these have reset options in them that are not what you want.