It is divided into three major CODE storage areas:
upgrade program area + user program area + user Main entry address storage area
Reset 0x0000-0x0003 address to save LJMP main command
For example,
C:0x0000 02F741 LJMP STARTUP1(C:F741)
0x0000 – 0x0003 stores 02F741, where 02 is the LJMP command code, and F741 is the jump address (main), which is actually not the address of main. Before main, it also protects the stack initialization code (you can see it through assembly).
The addresses after 0x0003 are various interrupt addresses. For example, the address of the SMBUS interrupt function
void SMBUS_ISR (void) interrupt 7
{
} SMBUS_ISR in your program is stored at 0x003B. A program is actually composed of interrupt vector + user code program. The interrupt vector is in the first sector. For KEIL, unless the function address is specifically specified, the compiler will automatically assign the function address after the program is written. That is to say, the address in the interrupt vector may change after the modification and compilation. For KEIL, the address of the program code can be specified, but this address is the user code address. For example, in Option For Target -àBL Loate -à code Range 0XEA00-0XFDFF Actual code area: Interrupt vector (first sector) + 0XEA00-0XFDFF
Previous article:Let’s talk about IAP upgrades in depth
Next article:Digital PID algorithm
- Popular Resources
- Popular amplifiers
- Practice of Serial Communication between Single Chip Microcomputer and Computer (Zhang Xiuguan)
- Lithium-ion battery ternary materials: process technology and production applications
- Design of SD card main controller based on c8051f020
- C8051F020 implements ADC sampling of analog voltage outside the chip, displays it on the LCD, and sends it to the PC through the serial port
Recommended Content
Latest Microcontroller Articles
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
MoreDaily News
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
Guess you like
- Overcome last-minute requirement changes with small, leaded SOT-23 thin multiplexers
- Make ADAS technology more popular in vehicles
- What is a hysteresis comparator?
- VICOR DCM2322 isolated regulated DC-DC converter is now available for free!
- Zigbee learning notes---protocol stack NV operation
- Required selection: 1.5V lithium rechargeable button battery Rated voltage (V) 1.5V
- GD32E231 analog IIC driver LSM6DSO
- Single Voltage Reference vs. Dual Voltage Reference - I
- Basic C language programming specifications for microcontroller development
- [N32L43X Review] 2. Simulating I2C to drive OLED