Make sure there is no usb ftdi error before trying to write to avalon.