fix bugs with writing to flash.
check more possible serial port speeds.