BasicStream.h
Go to the documentation of this file.
120 // Instead of RbootOutputStream, the rboot write API is used directly because in a future extension the OTA file may contain data for multiple FLASH regions.
Error while activating updated ROM slot.
Some content of the upgrade file is not supported by this version of OtaUpgradeStream.
bool isFinished() override
Check if all data has been read.
Definition: BasicStream.h:101
Error while writing to Flash memory.
Definition: FileFormat.h:24
Error errorCode
Error code. Only relevant if hasError() returns true.
Definition: BasicStream.h:67
Definition: FileFormat.h:34
static String errorToString(Error code)
Convert error code to string.
Definition: BasicStream.h:23
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
Definition: BasicStream.h:93
A write-only stream to parse and apply firmware unencrypted upgrade files generated by otatool...
Definition: BasicStream.h:44
Checksum verifier used by BasicStream if signature verification is disabled.
Definition: ChecksumVerifier.h:22
void setError(Error ec)
Signature/checksum verification failed - updated ROM not activated.
The file did not contain a ROM image suitable for the start address of the slot to upgrade...
No error occured thus far (default value of errorCode if hasError() returns false) ...
Attempt to downgrade to older firmware version.
Hash VerificationData
Checksum type.
Definition: ChecksumVerifier.h:25
Dynamic memory allocation failed.
BasicStream()
bool hasError() const
Returns true if an error happened during the upgrade process.
Definition: BasicStream.h:87
virtual int available() override
Return the total length of the stream.
Definition: BasicStream.h:97
An unexpected error occured.
Invalid/unsupported upgrade file format.
Decryption failed. Probably wrong decryption key.
The contained ROM image does not fit into the application firmware slot.
size_t write(const uint8_t *data, size_t size) override
Process chunk of upgrade file.