STM32 learning startup code comments

Publisher:ohp991养生的香菇Latest update time:2018-12-26 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

;Reset_Handler subroutine starts 

Reset_Handler PROC


; Output subroutine Reset_Handler to external file 

EXPORT Reset_Handler [WEAK]


; Import the __main function from an external file 

IMPORT __main


;Introduce SystemInit function from external file 

IMPORT SystemInit


; Load the SystemInit function call address into general register R0 

LDR R0, =SystemInit


; Jump to the address saved in R0 to execute the program (call SystemInit function) 

BLX R0


; Load the main function call address into general register R0 

LDR R0, =__main


; Jump to the address saved in R0 to execute the program (call the main function) 

BX R0


;Reset_Handler subroutine ends 

ENDP

Keywords:STM32 Reference address:STM32 learning startup code comments

Previous article:Summary of STM32 library function development
Next article:The location of interrupt source name and interrupt processing function name in stm32

Recommended ReadingLatest update time:2024-11-16 14:43

STM32—USART
Preface: Recently, I am debugging the USART configuration program of the STM32L152 chip to realize the STM32 serial port printing function. This article summarizes the usage of the STM32L152 chip USART. Hardware platform: STM32L152 Software platform: keil v5+cubeMX Function library: HAL library 1: usart initia
[Microcontroller]
STM32 MCU - encoder speed measurement
1. Experimental tools: an STM32 development board, L298N motor driver, DC motor And the software used (STM32CubeMX, keil4)   2. Encoder Principle 1. Overview: An encoder is a rotary sensor that converts angular displacement or angular velocity into a series of electrical digital pulses. Encoders are divided into photo
[Microcontroller]
STM32 - TIM2 timer timing
There are 11 timers in STM32, including 2 advanced control timers, 4 ordinary timers and 2 basic timers, as well as 2 watchdog timers and 1 system tick timer. The system tick timer is SysTick described in the previous article, and the watchdog timer will be studied in detail later. Today, we mainly study the remaining
[Microcontroller]
STM32 - TIM2 timer timing
STM32 Series Chapter 17 - Standby Wake-up
STM32 has three low power modes: Sleep mode: The core is stopped, but peripherals such as NVIC and the system clock Systick are still running. Stop mode: All clocks are stopped; 1.8V core power supply is working; PLL, HIS and HSERC oscillator functions are disabled; register and SRAM contents are retained. Standby
[Microcontroller]
STM32 Series Chapter 17 - Standby Wake-up
STM32 Window Watchdog (WWDG)
A few days ago, I learned about the two dogs of STM32. I first learned about the pet dog (IWDG), which is similar to other MCUs, so I won’t say much. When I learned about the police dog (WWDG), problems arose. It was not as easy to understand as IWDG. I read it for a long time but didn’t understand what was going on. T
[Microcontroller]
STM32: STM32 learning record 1: MDK basic data types and code optimization
I started to learn STM32 about a year ago. At that time, I was attracted by its library function development. However, I gave up learning due to various pressures. I have been using the so-called stable microcontrollers for development (I can't help but complain). Now I finally have time to start my own interest journ
[Microcontroller]
Notes on using the identifier filter group of the STM32 CAN bus
The identifier filter of the CAN bus is important. 1. The identifier filter is used for receiving. When sending, there is no need to set the filter. This must be understood. According to the frame data sent by the sender, the identifier filter can be set to receive only the frame data that needs to be received, effec
[Microcontroller]
Notes on using the identifier filter group of the STM32 CAN bus
Solar-LED Street Light Solution Based on STM32 MCU
As fossil energy is decreasing and the problem of global warming caused by excessive greenhouse gas emissions is becoming more and more important, people are actively developing various types of renewable energy on the one hand, and advocating green environmental protection technologies for energy conservation and
[Microcontroller]
Solar-LED Street Light Solution Based on STM32 MCU
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号