84 const McciBootloader_AppInfo_t *pAppInfo
87 volatile const uint8_t *
const targetAddress = (
volatile const uint8_t *) pAppInfo->targetAddress;
88 size_t const overallSizeTight = pAppInfo->imagesize + pAppInfo->authsize;
90 size_t const overallSize = (overallSizeTight + blockSize - 1) & ~(blockSize - 1);
94 targetAddress, overallSize
101 storageAddress + overallSize;
104 volatile const uint8_t *targetCurrent;
106 for (addressCurrent = storageAddress, targetCurrent = targetAddress;
107 addressCurrent < addressEnd;
108 addressCurrent += blockSize, targetCurrent += blockSize)
133 (
const void *)targetAddress, overallSizeTight
@ McciBootloaderError_FlashWriteFailed
flash write failed during programming
@ McciBootloaderError_ReadFailed
storage read failed during program
@ McciBootloaderError_OK
successful
@ McciBootloaderError_FlashVerifyFailed
flash verify failed after programming
@ McciBootloaderError_EraseFailed
erase failed
uint32_t McciBootloaderError_t
error codes for the bootloader
uint32_t McciBootloaderStorageAddress_t
Abstract type for storage byte addresses.
bool McciBootloader_checkCodeValid(const void *pBase, size_t nBytes)
uint8_t g_McciBootloader_imageBlock[4096]
McciBootloaderError_t McciBootloader_programAndCheckFlash(McciBootloaderStorageAddress_t storageAddress, const McciBootloader_AppInfo_t *pAppInfo)