update hexfile
convert \r\n to \n