Dual_Boot
[STM32F10x_StdPeriph_Examples]

Defines

#define BANK1_START_ADDRESS   0x08000000
#define BANK2_START_ADDRESS   0x08080000
#define MESSAGE1   " STM32 XL Density "
#define MESSAGE10   " 0x0 the base @ of Bank1/2"
#define MESSAGE11   " Operation Failed !"
#define MESSAGE12   "Bank 1/2 base @ -> 0"
#define MESSAGE2   " Device running on "
#define MESSAGE3   " STM3210E-EVAL "
#define MESSAGE5   " Joystick-DOWN: reset BFB2"
#define MESSAGE6   " bit to Boot from Bank2 "
#define MESSAGE7   " Joystick-UP: set BFB2 "
#define MESSAGE8   " bit to Boot from Bank1 "
#define MESSAGE9   " Joystick-SEL: program to "

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 = 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 = 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 = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED,
  FAILED = 0, PASSED = !FAILED, FAILED = 0, PASSED = !FAILED
}

Functions

void BusFault_Handler (void)
 This function handles Bus Fault exception.
void DebugMon_Handler (void)
 This function handles Debug Monitor exception.
void Delay (__IO uint32_t nTime)
 Inserts a delay time.
void HardFault_Handler (void)
 This function handles Hard Fault exception.
int main (void)
 Main program.
void MemManage_Handler (void)
 This function handles Memory Manage exception.
void NMI_Handler (void)
 This function handles NMI exception.
void PendSV_Handler (void)
 This function handles PendSV_Handler exception.
void SVC_Handler (void)
 This function handles SVCall exception.
void SysTick_Handler (void)
 This function handles SysTick Handler.
void TimingDelay_Decrement (void)
 Decrements the TimingDelay variable.
void UsageFault_Handler (void)
 This function handles Usage Fault exception.

Variables

RCC_ClocksTypeDef RCC_Clocks
static __IO uint32_t TimingDelay
USART_InitTypeDef USART_InitStructure

Define Documentation

#define BANK1_START_ADDRESS   0x08000000

Definition at line 66 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by main().

#define BANK2_START_ADDRESS   0x08080000

Definition at line 67 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by main().

#define MESSAGE1   " STM32 XL Density "

Definition at line 51 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by main().

#define MESSAGE10   " 0x0 the base @ of Bank1/2"

Definition at line 61 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by main().

#define MESSAGE11   " Operation Failed !"

Definition at line 63 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by main().

#define MESSAGE12   "Bank 1/2 base @ -> 0"

Definition at line 64 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by main().

#define MESSAGE2   " Device running on "

Definition at line 52 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by main().

#define MESSAGE3   " STM3210E-EVAL "

Definition at line 53 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by main().

#define MESSAGE5   " Joystick-DOWN: reset BFB2"

Definition at line 55 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by main().

#define MESSAGE6   " bit to Boot from Bank2 "

Definition at line 56 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by main().

#define MESSAGE7   " Joystick-UP: set BFB2 "

Definition at line 57 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by main().

#define MESSAGE8   " bit to Boot from Bank1 "

Definition at line 58 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by main().

#define MESSAGE9   " Joystick-SEL: program to "

Definition at line 60 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/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 
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 34 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.


Function Documentation

void BusFault_Handler ( void   ) 

This function handles Bus Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 86 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/stm32f10x_it.c.

void DebugMon_Handler ( void   ) 

This function handles Debug Monitor exception.

Parameters:
None 
Return values:
None 

Definition at line 121 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/stm32f10x_it.c.

void Delay ( __IO uint32_t  nTime  ) 

Inserts a delay time.

Parameters:
nTime,: specifies the delay time length, in 10 ms.
Return values:
None 

Definition at line 251 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

References TimingDelay.

void HardFault_Handler ( void   ) 

This function handles Hard Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 60 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/stm32f10x_it.c.

int main ( void   ) 
void MemManage_Handler ( void   ) 

This function handles Memory Manage exception.

Parameters:
None 
Return values:
None 

Definition at line 73 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/stm32f10x_it.c.

void NMI_Handler ( void   ) 

This function handles NMI exception.

Parameters:
None 
Return values:
None 

Definition at line 51 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/stm32f10x_it.c.

void PendSV_Handler ( void   ) 

This function handles PendSV_Handler exception.

Parameters:
None 
Return values:
None 

Definition at line 130 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/stm32f10x_it.c.

void SVC_Handler ( void   ) 

This function handles SVCall exception.

Parameters:
None 
Return values:
None 

Definition at line 112 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/stm32f10x_it.c.

void SysTick_Handler ( void   ) 

This function handles SysTick Handler.

Parameters:
None 
Return values:
None 

Definition at line 139 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/stm32f10x_it.c.

References TimingDelay_Decrement().

void TimingDelay_Decrement ( void   ) 

Decrements the TimingDelay variable.

Parameters:
None 
Return values:
None 

Definition at line 263 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by SysTick_Handler().

void UsageFault_Handler ( void   ) 

This function handles Usage Fault exception.

Parameters:
None 
Return values:
None 

Definition at line 99 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/stm32f10x_it.c.


Variable Documentation

Definition at line 74 of file STM32F10x_StdPeriph_Examples/FLASH/Dual_Boot/main.c.

Referenced by I2S_Init().

__IO uint32_t TimingDelay [static]
STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32