48#if (BOOT_BACKDOOR_HOOKS_ENABLE > 0)
76#if (BOOT_CPU_USER_PROGRAM_START_HOOK > 0)
92 if (HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_13) == GPIO_PIN_SET)
113#if (BOOT_COP_HOOKS_ENABLE > 0)
124#if (BOOT_COM_USB_ENABLE > 0)
167#if (BOOT_NVM_HOOKS_ENABLE > 0)
206 return BLT_NVM_NOT_IN_RANGE;
225 return BLT_NVM_NOT_IN_RANGE;
241#if (BOOT_NVM_CHECKSUM_HOOKS_ENABLE > 0)
273#if (BOOT_XCP_SEED_KEY_ENABLE > 0)
286 if ((resource & XCP_RES_PGM) != 0)
316 if ((resource == XCP_RES_PGM) && (key[0] == (0x55-1)))
typedef __attribute__
Ignition Mode.
static bool connect(void *instance)
blt_int8u XcpVerifyKeyHook(blt_int8u resource, blt_int8u *key, blt_int8u len)
Called by the UNLOCK command and checks if the key to unlock the specified resource was correct....
blt_bool NvmVerifyChecksumHook(void)
Verifies the checksum, which indicates that a valid user program is present and can be started.
blt_int8u NvmWriteHook(blt_addr addr, blt_int32u len, blt_int8u *data)
Callback that gets called at the start of the NVM driver write routine. It allows additional memory t...
void UsbConnectHook(blt_bool connect)
Callback that gets called whenever the USB device should be connected to the USB bus.
blt_bool CpuUserProgramStartHook(void)
Callback that gets called when the bootloader is about to exit and hand over control to the user prog...
blt_bool NvmDoneHook(void)
Callback that gets called at the end of the NVM programming session.
blt_int8u XcpGetSeedHook(blt_int8u resource, blt_int8u *seed)
Provides a seed to the XCP master that will be used for the key generation when the master attempts t...
void NvmInitHook(void)
Callback that gets called at the start of the internal NVM driver initialization routine.
blt_bool NvmWriteChecksumHook(void)
Writes a checksum of the user program to non-volatile memory. This is performed once the entire user ...
void UsbLeaveLowPowerModeHook(void)
Callback that gets called whenever the USB host requests the device to exit low power mode.
void NvmReinitHook(void)
Callback that gets called at the start of a firmware update to reinitialize the NVM driver.
blt_bool BackDoorEntryHook(void)
Checks if a backdoor entry is requested.
void UsbEnterLowPowerModeHook(void)
Callback that gets called whenever the USB host requests the device to enter a low power mode.
blt_int8u NvmEraseHook(blt_addr addr, blt_int32u len)
Callback that gets called at the start of the NVM driver erase routine. It allows additional memory t...
void LedBlinkExit(void)
Cleans up the LED blink driver. This is intended to be used upon program exit.