stm32flash: upgrade to new version 0.4

Signed-off-by: Christian Pointner <equinox@spreadspace.org>
Merge pull request #705 from equinox0815/stm32flash-update

stm32flash: upgrade to new version 0.4