*********************************************************************************************************
* Programming Arm
*
*
* (c) Copyright 1992-2008, Xi'an Jiaotong University
* All Rights Reserved
*
* Institute of Automatic Control 158
*
* File: Serial 2
* Version: V1.00
* Author: Pan Ziqiang
*
* Object: ARM7
* Mode: ARM
* Tool: ADS1.20
**********************************************************************************************************
*/
4 Description file
To write a description file, you must know the composition of the ARM Image file and the execution mechanism of the ARM Image file.
4.1 Structure of ARM Image
An ARM Image structure is defined by the linker in the following aspects:
The regions and output sections that make it up
The locations of these regions and sections in memory when the Image is downloaded
The locations of these regions and sections in memory when the Image is executed
4.1.1 Composition of ARM Image
An ARM Image is stored in an executable file, and its hierarchy may include Image, regions, output sections, and input sections.
An Image is composed of one or more regions, each of which includes one or more output sections
Each output section is composed of one or more input sections
Input sections are code and data information in an object file.
The structure of an Image is shown in the figure
below :
1 Figure: tu1.JPG (24684 bytes)
NOTE For the definitions of Input section, output section, and region, see page 3-3 of ADS_LinkerGuide.
At the same time, the Input section has several attributes, namely readonly, read-write, and zero-initialized. They are called RO, RW, and ZI respectively. The attribute comes from the attr attribute after AREA.
For example, CODE is RO, DATA is RW, and NOINT defaults to ZI, that is, it is initialized with a value of 0, but you can choose not to initialize it with a value of 0. The ZI attribute only comes from SPACE, DCB, DCD, DCDU, DCQ, DCQU, DCW, or DCWU. According to the above definition, the ZI attribute is included in the RW attribute, which is RW data with an initial value. For example, in C language, code is RO, static variables and global variables are RW and ZI.
Previous article:ARM development experience! (Part 4)
Next article:ARM development experience! (Suitable for beginners)
Recommended ReadingLatest update time:2024-11-15 23:32
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- 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!
- 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
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Problems with ADS1220
- Why do smart water meters use disposable 17450 (or other models) disposable lithium batteries? Why not use rechargeable batteries?
- How do Wi-Fi antennas work? How do you test and evaluate the performance of Wi-Fi networks? (Part 2)
- 【Development and application based on NUCLEO-F746ZG motor】15. Mathematical model - voltage equation and electromagnetic torque equation
- 5G may bring major upgrades to mobile phones
- What is high-precision timing? How does it change the rules of the game for 5G infrastructure?
- First review | Experience the world's first GD32V series development board based on RISC-V core
- Playing with Zynq Serial 42——[ex61] Image Laplacian Sharpening Processing of OV5640 Camera
- Snake moving in a twisting motion
- Qorvo's leading RF solutions