31#ifndef _SECOND_STAGE_BOOT_COMMON_H
32#define _SECOND_STAGE_BOOT_COMMON_H
40#define INIT_VECT_SIZE 16
51#if (EXTERNAL_MEMORY_SUPPORT == ENABLED)
cboot_error_t
Error codes.
Definition cboot_error.h:57
cboot_error_t bootCheckImage(BootContext *context)
Verify the whole-image CRC32 integrity of the installed 2nd stage bootloader.
Definition boot_common.c:52
CycloneBOOT Image management.
CycloneBOOT 2nd Stage Bootloader management.
BootState
Bootloader States definition.
Definition boot.h:178
cboot_error_t bootUpdateApp(BootContext *context, Slot *slot)
Update current application. Basically it decrypt/copy an image from the external flash memory into th...
Definition boot_common.c:647
cboot_error_t bootCheckRuntimeImage(BootContext *context, Slot *slot)
Check signature or integrity of current running image.
Definition boot_common.c:1135
cboot_error_t bootCheckSlotAppResetVector(Slot *slot)
Check reset vector of the current application firmware binary.
Definition boot_common.c:1224
cboot_error_t bootGetSlotImgHeader(Slot *slot, ImageHeader *header)
Get header from the image inside the given slot.
Definition boot_common.c:1183
cboot_error_t bootSelectRepairImageSlot(BootContext *context, Slot *selectedSlot)
Select a slot holding an image that can repair the running application. Accepts an equal image index,...
Definition boot_common.c:364
cboot_error_t bootInitSecondaryMem(BootContext *context, BootSettings *settings)
Initialize bootloader secondary (external) flash memory.
Definition boot_common.c:237
void bootChangeState(BootContext *context, BootState newState)
Update Bootloader state.
Definition boot_common.c:1265
cboot_error_t bootBackupCurrentApp(BootContext *context, Slot *updateSlot)
Back up the running application before an update is installed. The copy is written as is....
Definition boot_common.c:568
const FlashDriver * bootGetSlotDriver(const Slot *slot)
Resolve the flash driver backing a slot.
Definition boot_common.c:88
cboot_error_t bootInitPrimaryMem(BootContext *context, BootSettings *settings)
Intialize bootloader primary flash memory.
Definition boot_common.c:102
cboot_error_t bootReadbackVerifyImage(Slot *slot)
Read back and verify the image just installed in the given slot. Re-reads the slot from flash and re-...
Definition boot_common.c:911
First-stage bootloader context.
Definition boot.h:136
First-stage bootloader user settings.
Definition boot.h:118
Flash Driver definition.
Definition flash.h:187
Slot Type definition.
Definition memory.h:181