libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/stm32/flash.h>
Go to the source code of this file.
Functions | |
void | flash_wait_for_last_operation (void) |
Wait until Last Operation has Ended This loops indefinitely until an operation (write or erase) has completed by testing the busy flag. More... | |
void | flash_clear_pgserr_flag (void) |
Clear the Programming Sequence Error Flag This flag is set when incorrect programming configuration has been made. More... | |
void | flash_clear_size_flag (void) |
Clear programming size error flag. More... | |
void | flash_clear_pgaerr_flag (void) |
Clear the Programming Alignment Error Flag. More... | |
void | flash_clear_wrperr_flag (void) |
Clear the Write Protect Error Flag. More... | |
void | flash_clear_progerr_flag (void) |
Clear the Programming Error Status Flag. More... | |
void | flash_clear_status_flags (void) |
Clear All Status Flags Program error, end of operation, write protect error, busy. More... | |
void | flash_lock_option_bytes (void) |
Lock the Option Byte Access This disables write access to the option bytes. More... | |
void | flash_program_double_word (uint32_t address, uint64_t data) |
Program a 64 bit word to FLASH. More... | |
void | flash_program (uint32_t address, uint8_t *data, uint32_t len) |
Program a Data Block to FLASH This programs an arbitrary length data block to FLASH memory. More... | |
void | flash_erase_page (uint32_t page) |
Erase a page of FLASH. More... | |
void | flash_erase_all_pages (void) |
Erase All FLASH This performs all operations necessary to erase all sectors in the FLASH memory. More... | |
void | flash_program_option_bytes (uint32_t data) |
Program the Option Bytes This performs all operations necessary to program the option bytes. More... | |