Updated stlink_write_flash to save RAM for VL-type cores

The stlink_write_flash routine needs to save the RAM it overwrites
for the STM32VLDISCOVERY board in certain cases when gdb loads
sections to RAM first