Flash write fixes

   stm8s105 over both stlink v1/v2 now work
   stm8l152 over both stlink v1/v2 now work