MCCI Trusted Bootloader
Simple trusted bootloader and tools for small embedded systems
mccibootloader_stm32h7_systemflash.c File Reference

Go to the source code of this file.

Macros

#define MCCI_STM32H7_REG_FLASH_SR_ERRORS
 

Functions

bool McciBootloader_Stm32h7_EraseSector (uint32_t flash_addr)
 
void McciBootloader_Stm32h7_Lock (uint32_t flash_addr)
 
bool McciBootloader_Stm32h7_systemFlashErase (volatile const void *pBase, size_t nBytes)
 
bool McciBootloader_Stm32h7_systemFlashWrite (volatile const void *pDest, const void *pSrc, size_t nBytes)
 
void McciBootloader_Stm32h7_Unlock (uint32_t flash_addr)
 
bool McciBootloader_Stm32h7_waitForDone (uint32_t flash_addr)
 

Macro Definition Documentation

◆ MCCI_STM32H7_REG_FLASH_SR_ERRORS

#define MCCI_STM32H7_REG_FLASH_SR_ERRORS
Value:
(/*MCCI_STM32H7_REG_FLASH_SR_CRCRDERR |*/ \
#define MCCI_STM32H7_REG_FLASH_SR_INCERR
inconsistency error flag
#define MCCI_STM32H7_REG_FLASH_SR_RDPERR
read protection error flag
#define MCCI_STM32H7_REG_FLASH_SR_PGSERR
programming sequence error flag
#define MCCI_STM32H7_REG_FLASH_SR_SNECCERR
ECC single correction error flag.
#define MCCI_STM32H7_REG_FLASH_SR_WRPERR
write protection error flag
#define MCCI_STM32H7_REG_FLASH_SR_STRBERR
strobe error flag
#define MCCI_STM32H7_REG_FLASH_SR_DBECCERR
ECC double detection error flag.
#define MCCI_STM32H7_REG_FLASH_SR_RDSERR
secure error flag

Definition at line 32 of file mccibootloader_stm32h7_systemflash.c.

Function Documentation

◆ McciBootloader_Stm32h7_EraseSector()

◆ McciBootloader_Stm32h7_Lock()

◆ McciBootloader_Stm32h7_systemFlashErase()

bool McciBootloader_Stm32h7_systemFlashErase ( volatile const void *  pBase,
size_t  nBytes 
)

◆ McciBootloader_Stm32h7_systemFlashWrite()

◆ McciBootloader_Stm32h7_Unlock()

◆ McciBootloader_Stm32h7_waitForDone()