STM32F0xx Standard Peripherals Firmware Library: FLASH_Program

STM32F0xx Standard Peripherals Library

STM32F0xx Standard Peripherals Firmware Library

Defines

#define DATA_32   ((uint32_t)0x12345678)
#define FLASH_PAGE_SIZE   ((uint32_t)0x00000400)
#define FLASH_USER_END_ADDR   ((uint32_t)0x08007000)
#define FLASH_USER_START_ADDR   ((uint32_t)0x08006000)

Enumerations

enum  TestStatus {
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 1, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED
}

Functions

int main (void)
 Main program.

Variables

uint32_t Address = 0x00
uint32_t Data = 0x3210ABCD
uint32_t EraseCounter = 0x00
__IO FLASH_Status FLASHStatus = FLASH_COMPLETE
__IO TestStatus MemoryProgramStatus = PASSED
uint32_t NbrOfPage = 0x00

Define Documentation

#define DATA_32   ((uint32_t)0x12345678)

Definition at line 55 of file STM32F0xx_StdPeriph_Examples/FLASH/Flash_Program/main.c.

Referenced by main().

#define FLASH_PAGE_SIZE   ((uint32_t)0x00000400)

Definition at line 51 of file STM32F0xx_StdPeriph_Examples/FLASH/Flash_Program/main.c.

Referenced by main().

#define FLASH_USER_END_ADDR   ((uint32_t)0x08007000)

Definition at line 53 of file STM32F0xx_StdPeriph_Examples/FLASH/Flash_Program/main.c.

Referenced by main().

#define FLASH_USER_START_ADDR   ((uint32_t)0x08006000)

Definition at line 52 of file STM32F0xx_StdPeriph_Examples/FLASH/Flash_Program/main.c.

Referenced by main().


Enumeration Type Documentation

enum TestStatus
Enumerator:
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 
FAILED 
PASSED 

Definition at line 40 of file STM32F0xx_StdPeriph_Examples/FLASH/Flash_Program/main.c.


Function Documentation

int main ( void  )

Main program.

Parameters:
None
Return values:
None

< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f0xx.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f0xx.c file

Definition at line 73 of file STM32F0xx_StdPeriph_Examples/FLASH/Flash_Program/main.c.

References Address, Data, DATA_32, EraseCounter, FAILED, FLASH_PAGE_SIZE, FLASH_USER_END_ADDR, FLASH_USER_START_ADDR, FLASHStatus, MemoryProgramStatus, NbrOfPage, and PASSED.


Variable Documentation

uint32_t Address = 0x00

Definition at line 59 of file STM32F0xx_StdPeriph_Examples/FLASH/Flash_Program/main.c.

Referenced by main().

uint32_t Data = 0x3210ABCD

Definition at line 60 of file STM32F0xx_StdPeriph_Examples/FLASH/Flash_Program/main.c.

Referenced by main().

uint32_t EraseCounter = 0x00

Definition at line 59 of file STM32F0xx_StdPeriph_Examples/FLASH/Flash_Program/main.c.

Referenced by main().

__IO FLASH_Status FLASHStatus = FLASH_COMPLETE

Definition at line 62 of file STM32F0xx_StdPeriph_Examples/FLASH/Flash_Program/main.c.

Referenced by main().

Definition at line 63 of file STM32F0xx_StdPeriph_Examples/FLASH/Flash_Program/main.c.

Referenced by main().

uint32_t NbrOfPage = 0x00

Definition at line 61 of file STM32F0xx_StdPeriph_Examples/FLASH/Flash_Program/main.c.

Referenced by main().

STM32L1xx Standard Peripherals Library: Footer

 

 

 For complete documentation on STM32 Microcontrollers visit www.st.com/STM32