Microchip® Advanced Software Framework

bootloader.c File Reference

Implementation of bootloader state machine.

Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.

#include <types.h>
#include <bootStructure.h>
#include <abstractSerializer.h>
#include <hardwareInit.h>
#include "app_info.h"
#include "appEntry.h"

Functions

int Boot_main (void)
 State machine in the main. More...
 

Variables

boot_info_t bInfo
 
uint64_t flag
 

int Boot_main ( void  )

boot_info_t bInfo
Initial value:
= {
.crc =0,
.majorRev = 0x0001,
.minorRev = 0x0001,
.reservedRev = 0x0000,
.supported_features.mask = 0,
.supported_features.bits.multiApps = FEATURE_MULTI_APPS,
.supported_features.bits.imgSecurity = 0,
.supported_features.bits.rfInterface = 0,
.supported_features.bits.usart0Interface = 1,
.supported_features.bits.usart1Interface = 0,
.supported_features.bits.spiInterface = 0,
.supported_features.bits.twiInterface = 0,
.supported_features.bits.usbInterface = 0,
.supported_features.bits.reserved = 0,
.start_address = 0x00000000,
.bprot_size = 0x0003,
.reserved = 0x00
}
#define TWO_POWER_EXPONENT_16(x)
Definition: boot_version.h:51
#define FEATURE_MULTI_APPS
Definition: boot_version.h:63
#define FLASH_SIZE_IN_KB
Definition: boot_version.h:53
#define EXT_MEM_SIZE_IN_KB
Definition: boot_version.h:58

Referenced by update_boot_info().