A compiled firmware binary, ready to flash, with the facts the flasher needs and the diagnostics of the compile. More...
| Header: | #include <FirmwareImage> |
| Since: | 1.0 |
A FirmwareImage is a value type. Only FirmwareCompiler and FirmwareImageCache can fill one, because they are its friends: the compiler after a build, and the cache when it reads a stored image back. A default-constructed image is not valid.
An image holds the flash bytes, the target MCU, the flash page size of the bootloader of the board, the sections of the linked ELF file, and every diagnostic of the compile. FirmwareFlasher writes the bytes to the board. Before it writes, it reads the device signature, and it warns when the signature is not the one signatureForMCU() finds in the board data. Q_DECLARE_METATYPE lets an image travel through a queued signal.
See also FirmwareImageCache.