|
|
|
@ -273,7 +273,7 @@ bool Bootloader::_ihxProgram(QextSerialPort* port, const FirmwareImage* image)
@@ -273,7 +273,7 @@ bool Bootloader::_ihxProgram(QextSerialPort* port, const FirmwareImage* image)
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
qCDebug(FirmwareUpgradeVerboseLog) << QString("Bootloader::_ihxProgram - address:%1 size:%2 block:%3").arg(flashAddress).arg(bytes.count()).arg(index); |
|
|
|
|
qCDebug(FirmwareUpgradeVerboseLog) << QString("Bootloader::_ihxProgram - address:0x%1 size:%2 block:%3").arg(flashAddress, 8, 16, QLatin1Char('0')).arg(bytes.count()).arg(index); |
|
|
|
|
|
|
|
|
|
// Set flash address
|
|
|
|
|
|
|
|
|
@ -400,7 +400,7 @@ bool Bootloader::_binVerifyBytes(QextSerialPort* port, const FirmwareImage* imag
@@ -400,7 +400,7 @@ bool Bootloader::_binVerifyBytes(QextSerialPort* port, const FirmwareImage* imag
|
|
|
|
|
_write(port, (uint8_t)bytesToRead) && |
|
|
|
|
_write(port, PROTO_EOC)) { |
|
|
|
|
port->flush(); |
|
|
|
|
if (_read(port, readBuf, sizeof(readBuf))) { |
|
|
|
|
if (_read(port, readBuf, bytesToRead)) { |
|
|
|
|
if (_getCommandResponse(port)) { |
|
|
|
|
failed = false; |
|
|
|
|
} |
|
|
|
@ -479,7 +479,7 @@ bool Bootloader::_ihxVerifyBytes(QextSerialPort* port, const FirmwareImage* imag
@@ -479,7 +479,7 @@ bool Bootloader::_ihxVerifyBytes(QextSerialPort* port, const FirmwareImage* imag
|
|
|
|
|
} else { |
|
|
|
|
bytesToRead = bytesLeftToRead; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
failed = true; |
|
|
|
|
if (_write(port, PROTO_READ_MULTI) && |
|
|
|
|
_write(port, bytesToRead) && |
|
|
|
|