Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
startup_stm32f10x_md.c File Reference
STM32F10x Medium Density Devices Startup code. This module performs:
- Set the initial SP
- Set the vector table entries with the exceptions ISR address
- Initialize data and bss
- Setup the microcontroller system.
- Call the application's entry point. After Reset the Cortex-M3 processor is in Thread mode, priority is Privileged, and the Stack is set to Main.
Go to the source code of this file.
| Functions | |
| __attribute__ ((section(".co_stack"))) | |
| void | Default_Reset_Handler (void) | 
| This is the code that gets called when the processor first starts execution following a reset event. | |
| static void | Default_Handler (void) | 
| Provide weak aliases for each Exception handler to the Default_Handler. | |
Detailed Description
STM32F10x Medium Density Devices Startup code. This module performs:
- Set the initial SP
- Set the vector table entries with the exceptions ISR address
- Initialize data and bss
- Setup the microcontroller system.
- Call the application's entry point. After Reset the Cortex-M3 processor is in Thread mode, priority is Privileged, and the Stack is set to Main.
- Version:
- V1.0
- Date:
- 12/23/2009
Definition in file startup_stm32f10x_md.c.
Function Documentation
| __attribute__ | ( | (section(".co_stack")) | ) | 
< The initial stack pointer
< Reset Handler
< NMI Handler
< Hard Fault Handler
< MPU Fault Handler
< Bus Fault Handler
< Usage Fault Handler
< Reserved
< SVCall Handler
< Debug Monitor Handler
< Reserved
< PendSV Handler
< SysTick Handler
< 0: Window Watchdog
< 1: PVD through EXTI Line detect
< 2: Tamper
< 3: RTC
< 4: Flash
< 5: RCC
< 6: EXTI Line 0
< 7: EXTI Line 1
< 8: EXTI Line 2
< 9: EXTI Line 3
< 10: EXTI Line 4
< 11: DMA1 Channel 1
< 12: DMA1 Channel 2
< 13: DMA1 Channel 3
< 14: DMA1 Channel 4
< 15: DMA1 Channel 5
< 16: DMA1 Channel 6
< 17: DMA1 Channel 7
< 18: ADC1 & ADC2
< 19: USB High Priority or CAN1 TX
< 20: USB Low Priority or CAN1 RX0
< 21: CAN1 RX1
< 22: CAN1 SCE
< 23: EXTI Line 9..5
< 24: TIM1 Break
< 25: TIM1 Update
< 26: TIM1 Trigger and Commutation
< 27: TIM1 Capture Compare
< 28: TIM2
< 29: TIM3
< 30: TIM4
< 31: I2C1 Event
< 32: I2C1 Error
< 33: I2C2 Event
< 34: I2C2 Error
< 35: SPI1
< 36: SPI2
< 37: USART1
< 38: USART2
< 39: USART3
< 40: EXTI Line 15..10
< 41: RTC Alarm through EXTI Line
< 42: USB Wakeup from suspend
< Reserved
< Boot in RAM mode
Definition at line 22 of file startup_stm32f10x_md.c.
| static void Default_Handler | ( | void | ) |  [static] | 
Provide weak aliases for each Exception handler to the Default_Handler.
As they are weak aliases, any function with the same name will override this definition. This is the code that gets called when the processor receives an unexpected interrupt. This simply enters an infinite loop, preserving the system state for examination by a debugger.
- Parameters:
- 
  None 
- Return values:
- 
  None 
Definition at line 284 of file startup_stm32f10x_md.c.
| void Default_Reset_Handler | ( | void | ) | 
This is the code that gets called when the processor first starts execution following a reset event.
Only the absolutely necessary set is performed, after which the application supplied main() routine is called.
- Parameters:
- 
  None 
- Return values:
- 
  None 
Definition at line 185 of file startup_stm32f10x_md.c.
Generated on Tue Jul 12 2022 20:45:32 by
 1.7.2
 1.7.2