ARM development experience! (Part 2)

Publisher:theta18Latest update time:2015-03-16 Source: laoguKeywords:arm Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
/* 
********************************************************************************************************* 
* 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.

  

Keywords:arm Reference address:ARM development experience! (Part 2)

Previous article:ARM development experience! (Part 4)
Next article:ARM development experience! (Suitable for beginners)

Recommended ReadingLatest update time:2024-11-15 23:32

ARM-Assembly Instruction Set (Summary)
ARM assembly instruction set Instructions, pseudo-instructions (Assembly) Instruction: It is a mnemonic for machine code, compiled by the assembler and executed by the CPU.  (Assembly) Pseudo-instruction: It is used to guide the execution of instructions. It is the product of the assembler and will not generate machin
[Microcontroller]
Arm launches new technology to revolutionize automotive software-defined future
On September 15, British chip developer Arm announced that by collaborating with leading companies across the automotive supply chain, it will provide new software architecture and reference implementations, the Scalable Open Architecture for Embedded Edge (SOAFEE), and two new reference hardware platforms to accelera
[Automotive Electronics]
Arm launches new technology to revolutionize automotive software-defined future
Pedometer algorithm based on ARM7 ADUC7020+MPU6050
The microcontroller source program is as follows: /********************************************************************* Author        : J Scarlett Date: November 2006 Files          : main.c, display.c, ped.c Hardware      : ADuC7020 Description   : Implements a simple pedometer based on application        
[Microcontroller]
LCD ARM programming method, how to write LCD Linux program?
  LCD programming design based on ARM processor:   With the rapid development of single-chip microcomputer technology, new instruments and meters are showing a trend of simple operation and portability. LCD modules can meet the growing requirements of embedded systems. They can display Chinese characters, letters and
[Microcontroller]
LCD ARM programming method, how to write LCD Linux program?
Technical application of LM3S811 microcontroller and TH12864 display module based on ARM
The 8-bit 51 single-chip microcomputer has long occupied the mainstream market of microcontrollers (MCU), but with the development of technology and demand, the application growth rate of 32-bit microcontrollers is also rising. At present, 32-bit microprocessors based on ARM core are in a leading position in the marke
[Microcontroller]
Technical application of LM3S811 microcontroller and TH12864 display module based on ARM
Embedded Linux Development (XVIII) Memory Management (2) ARM Memory Management
Hardware memory management armv7v8 ARM is uniformly addressed, that is, peripherals and (memory A) are uniformly addressed, together forming a 4G physical address space (32 bits as an example). The memory controller belongs to peripherals, and the memory belongs to (memory A). The internal and external memory of a soc
[Microcontroller]
Implementation of address remapping in ARM system
In recent years, with the continuous improvement of 32-bit chip manufacturing technology and the continuous reduction of manufacturing costs, the domestic 32-bit MCU market has also begun to become popular. More and more engineers have begun to shift their development focus from 8-bit to 32-bit microprocessors. Produc
[Microcontroller]
Implementation of address remapping in ARM system
With X86 and ARM, why is RISC-V still popular in automobiles?
There is a joke in the software circle: Do you dare to touch ten-year-old code? The specific situation of this story is: when a new colleague is told to maintain an old product, looking at the code package is like looking at flowers in the fog. When he goes to ask colleagues with more seniority, he finds that after
[Automotive Electronics]
With X86 and ARM, why is RISC-V still popular in automobiles?
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号