54 MMIO32(address) = (uint32_t)data;
55 MMIO32(address+4) = (uint32_t)(data >> 32);
74 for (uint32_t i = 0; i < len; i += 8) {
#define FLASH_ACR_ICEN
FLASH_ACR_ICEN Instruction cache enable.
#define FLASH_ACR_ICRST
FLASH_ACR_ICRST Instruction cache reset.
#define FLASH_CR_PNB_SHIFT
#define FLASH_CR_OPTLOCK
FLASH_CR_OPTLOCK Options Lock.
#define FLASH_CR_PG
FLASH_CR_PG Programming.
#define FLASH_CR_MER
FLASH_CR_MER Mass erase.
#define FLASH_CR_PNB_MASK
#define FLASH_CR_LOCK
FLASH_CR_LOCK FLASH_CR Lock.
#define FLASH_CR_PER
FLASH_CR_PER Page erase.
#define FLASH_CR_STRT
FLASH_CR_STRT Start.
void flash_unlock_progmem(void)
Unlock program memory.
void flash_icache_disable(void)
Disable instruction cache.
void flash_erase_page(uint32_t page)
Erase a page of FLASH.
void flash_lock_option_bytes(void)
Lock Option Byte Access.
void flash_unlock(void)
Unlock the Flash Program and Erase Controller This enables write access to the Flash memory.
void flash_unlock_option_bytes(void)
Unlock the Option Byte Access.
void flash_lock_progmem(void)
lock program memory
void flash_wait_for_last_operation(void)
Wait until Last Flash Operation has Ended.
void flash_clear_pgaerr_flag(void)
Clear the Programming Alignment Error Flag.
void flash_clear_pgserr_flag(void)
Clear the Programming Sequence Error Flag.
void flash_icache_reset(void)
Reset instruction cache.
void flash_clear_eop_flag(void)
Clear the End of Operation Flag.
void flash_clear_status_flags(void)
Clear All Status Flags.
void flash_program(uint32_t address, uint8_t *data, uint32_t len)
Program a Data Block to FLASH.
void flash_icache_enable(void)
Enable instruction cache.
void flash_clear_size_flag(void)
Clear programming size error flag.
void flash_program_double_word(uint32_t address, uint64_t data)
Program a 64bits word to FLASH.
void flash_clear_progerr_flag(void)
Clear the Programming Error Status Flag.
void flash_lock(void)
Lock the Flash Program and Erase Controller Used to prevent spurious writes to FLASH.
void flash_clear_operr_flag(void)
Clear the Operation Error Status Flag.
void flash_clear_wrperr_flag(void)
Clear the Write Protected Error Flag.
void flash_erase_all_pages(void)
Erase All FLASH This performs all operations necessary to erase all sectors in the FLASH memory.
#define FLASH_KEYR_KEY2
FLASH_KEYR_KEY2 Flash key 2.
#define FLASH_KEYR_KEY1
FLASH_KEYR_KEY1 Flash key 1.
#define FLASH_SR_SIZERR
FLASH_SR_SIZERR Size error.
#define FLASH_SR_BSY
FLASH_SR_BSY Busy.
#define FLASH_SR_OPERR
FLASH_SR_OPERR Operation error.
#define FLASH_SR_PGSERR
FLASH_SR_PGSERR Programming sequence error.
#define FLASH_SR_PROGERR
FLASH_SR_PROGERR Programming error.
#define FLASH_SR_WRPERR
FLASH_SR_WRPERR Write protected error.
#define FLASH_SR_PGAERR
FLASH_SR_PGAERR Programming alignment error.
#define FLASH_SR_EOP
FLASH_SR_EOP End of operation.