Hmm...
When I connect to my STM32F4-Discovery and make some tests on previously
downloaded firmware (get info, MCU halt-reset-run) everything seems to look
OK.
But when I Send new firmware, I must disconnect USB cable from PC to
recreate proper operation of Discovery board - it stops responding to anything,
hard Reset button included
None of possible operations from your application change state of the board!
It looks like bug in ending of firmware send.
Test firmware files checked with original ST-LinkV2 application - no problems
at all.
BTW - Receive worked & ended perfect.