Research on Embedded Minimum System Based on ARM

Publisher:Zhenai5201314Latest update time:2018-02-19 Source: 21icKeywords:ARM  S3C44B0  SDRAM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

 1 Introduction

With the rapid development of embedded related technologies, the functions of embedded systems are becoming more and more powerful, and the application interfaces are becoming richer. Designing specific embedded minimum systems and application systems according to the needs of actual applications is the key to embedded system design. At present, in the process of embedded system development, developers often put a lot of energy into the connection between the embedded microprocessor MPU (Micro Processing Unit) and many peripherals and the development of application codes, while ignoring the research on the most basic and core parts of the embedded system.

Currently in the embedded field, ARM (Advanced RISC Machines) processors are widely used in various embedded devices. Since the ARM embedded architecture is similar and has common peripheral circuits, and the design principles and methods of the embedded minimum system of the ARM core are basically the same, the research on the embedded minimum system is of vital importance in the development of the entire system. This paper takes the ARM-based embedded minimum system as a platform and studies the architecture of the embedded minimum system from both hardware and software aspects. The hardware aspect mainly introduces the interface technology between the ARM processor and the typical external memory, and the software aspect focuses on a detailed analysis of the startup architecture of the embedded minimum system.

2. Embedded Minimum System

The embedded minimum system is the minimum module configuration that can make the system run while reducing the upper-level applications as much as possible. For a typical embedded minimum system, taking the ARM processor as an example, its constituent modules and their functions are shown in Figure 1, where the ARM microprocessor, FLASH and SDRAM modules are the core parts of the embedded minimum system.

 

Clock module - usually multiplied by the ARM internal phase-locked loop to provide the clock frequency input required for the operation of each module of the system
Flash storage module - stores the startup code, operating system and user application code
SDRAM module - provides dynamic storage space for system operation and is the main area for system code operation
JTAG module - realizes the download and debugging of program code
UART module - realizes the terminal display of debugging information
Reset module - realizes the reset of the system

3. External memory interface technology

The interface technology between ARM processor and external memory (Flash and SDRAM) is the key to the hardware design of embedded minimum system. Choosing a reasonable interface method according to needs can effectively improve the overall performance of embedded system.

3.1 Introduction to Common External Storage

(1) Nor Flash and Nand Flash

Nor Flash is also called linear Flash. It has high reliability, fast random read speed, and the feature of on-chip execution (XIP, eXecute In Place), so that the application can run directly in the Flash memory without having to read the code into the system RAM. It is often used in situations where there are few erase and program operations and the code can be executed directly.

Nand Flash is an ideal solution for high data storage density. It is generally used for data storage and file storage. It is erased in blocks and has the advantage of fast erasing speed.

(2) Synchronous dynamic memory SDRAM

SDRAM (Synchronous Dynamic Random Access Memory) is an improvement on the early DRAM. It is a synchronous memory and introduces the CLK signal in the interface signal. All data, address and control signals are aligned with the rising edge of CLK. In addition, SDRAM also introduces a command controller inside. The processor accesses SDRAM by sending commands to the command controller.

3.2 ARM processor and Flash interface technology

3.2.1 ARM processor and Nor Flash interface technology

Nor Flash has an SRAM interface and has enough address pins to directly address the storage cells inside the memory. In the actual system, the connection method between the ARM processor and the Nor Flash can be selected as needed. Figure 2 shows two different connection methods between the ARM processor and the Nor Flash in the case of an embedded minimum system containing two Nor Flashes.

 

1) Dual Flash independent chip select

This method treats the two Nor Flash chips as independent units. According to different application requirements, the boot code can be stored in one Flash, and the file system can be established in the other Flash to store the application code. This method is easy to operate and manage.

(2) Dual Flash unified chip select

This method combines two Nor Flash chips into one unit for processing. The ARM processor accesses them as a parallel processing unit. In this example, two 8-bit Nor Flash chips SST39VF1601 are used as a 16-bit unit for processing. This can be used as a reference for the connection method of N (N>2) blocks of Flash.

3.2.2 ARM processor and Nand Flash interface technology

Nand Flash interface has relatively few signals, and the address, data and command buses are multiplexed. The Nand Flash interface is essentially an I/O interface. When the system accesses data to Nand Flash, it needs to send relevant commands and parameters to Nand Flash first, and then perform corresponding data operations. There are three main ways to connect the ARM processor to Nand Flash, as shown in Figure 3:

Using GPIO pins to control the various signals of Nand Flash can fully utilize the performance of NAND devices when the speed requirement is relatively low. It will be very convenient to meet the time domain requirements of NAND devices, making it easy for ARM processors to control NAND devices. This method requires the processor to provide sufficient GPIO.

 

 

(2) Use logical operations to connect

In this mode, the processor's read and write enable signals drive the corresponding read and write signals of the NAND device after performing a logical operation with the chip select signal CS. Example b in Figure 3 shows the connection between the ARM7TDMI series processor S3C44B0 of SamSung and the Nand Flash K9F2808U0C.

(3) Direct chip enable

Some ARM processors, such as S3C2410, provide corresponding control registers for NAND devices. Through the control registers, the ARM processor can drive the corresponding signals of the NAND device. This method makes the connection between the ARM processor and the NAND device simple and standardized. Example c in Figure 3 shows the connection between the ARM processor S3C2410 and the Nand Flash K9F2808U0C.

3.3 ARM processor and SDRAM interface technology

The external dynamic memory module of the embedded minimum system generally uses SDRAM. Most of the current ARM processors have an integrated SDRAM controller, which can easily access every byte inside the SDRAM. In actual development, one or more SDRAMs can be selected as needed. Figure 4 shows two commonly used interface methods.

(1) Monolithic SDRAM

Example a in Figure 4 shows the connection between an ARM processor S3C44B0 and a 16-bit SDRAM K4S641632d. This connection is often used in embedded systems that have strict size restrictions and low requirements on dynamic memory capacity.

(2) Use two 16-bit SDRAM chips together

When two 16-bit SDRAMs are combined into a 32-bit SDRAM, the address line A2 of the ARM processor is connected to the address line A0 of the SDRAM, and the remaining addresses are incremented in sequence. This is because the byte is the only unit of storage capacity in the SDRAM, and the SDRAM is 32 bits wide at this time.

The BA address line of SDRAM is the address line of its internal Bank, representing the highest bit of SDRAM memory. In Figure 4, the total size of SDRAM in example b is 64M (64M= ), which requires A25-A0 pins to address, so BA1-BA0 are connected to A25-A24 pins. It should also be noted that the row address and column address of SDRAM memory are multiplexed, so the number of address lines is generally less than 26. For specific connections, please refer to the relevant manuals of ARM processor and SDRAM.

It is worth noting that some ARM processors, such as the ARM940T series processor S3C2510 of SamSung, have address buses that are different from other standard ARM processors. Its address lines are divided into two types: internal address lines and external address lines. According to the width of the connected memory data bus, the internal address lines are shifted accordingly and correspond to the external address lines A23-A0, thereby providing fixed address lines A23-A0 to the outside. Its essence is consistent with that of typical ARM processors.                                                                          

4. Embedded system boot architecture

Boot architecture is a key technology of embedded systems. Mastering the boot architecture is of great significance to understanding the operating principle of embedded systems. When an embedded system starts up, there are two main architectures for boot code, operating system operation, and application loading. One is the architecture that boots directly from Nor Flash, and the other is the architecture that boots directly from Nand Flash.

It should be noted that there are many situations in the process of embedded system booting. For example, the boot code BootRom of vxWorks can be compressed or uncompressed, resident or non-resident. The operating system itself is also stored in compressed image format. Therefore, the boot code needs to be processed accordingly according to different situations during execution and loading.

4.1 Boot from Nor Flash

Nor Flash has the feature of in-chip execution (XIP, eXecute In Place), and is often used as the first choice for storing boot code in embedded systems. The architecture booting from Nor Flash can be further divided into the boot architecture using only Nor Flash and the boot architecture using Nor Flash and Nand Flash together. Figure 5 shows the principle block diagram of these two boot architectures.

4.1.1 Using Nor Flash alone

In this architecture, the boot code, operating system, and application code coexist in the same Nor Flash. After the system is powered on, the boot code is first executed in the Nor Flash, and then the operating system and application code are loaded into the higher-speed SDRAM for execution. Another feasible architecture is to execute the boot code and operating system in the Nor Flash, and only load the application code into the SDRAM for execution.

This architecture makes full use of the characteristics of Nor Flash in-chip execution, which can effectively improve system performance. However, the disadvantage is that as the capacity of the operating system and application code increases, more expensive Nor Flash is needed to support it.

4.1.2 Using Nor Flash and Nand Flash Together

The use of Nor Flash alone will increase the cost of the product for applications with large amounts of code. One way to improve this is to use an architecture that uses Nor Flash and Nand Flash together. In this architecture, a Nand Flash is added. The Nor Flash (2M or 4M) stores the boot code and the operating system (the operating system can be stored in the Nor Flash or Nand Flash depending on the amount of code), while the Nand Flash stores the application code. The Nand Flash capacity can be changed accordingly based on the amount of application code stored.

After the system is powered on, the boot code is directly executed in the Nor Flash, and the operating system and application code in the Nand Flash are loaded into the higher-speed SDRAM for execution. It is also possible to execute the boot code and operating system in the Nor Flash, and only load the application code in the Nand Flash into the SDRAM for execution. This architecture is one of the most widely used boot architectures in current embedded systems.

4.1.2 Booting from Nand Flash

Some processors, such as the ARM920T series processor S3C2410 of Samsung Sung, support the mode of booting from Nand Flash. Its working principle is to load the first 4KB code stored in Nand Flash into an address called Steppingstone (BootSRAM), and then start to execute the boot code to complete the loading of the operating system and application. This method requires a NAND controller inside the processor and a certain amount of additional SRAM space. It has certain limitations and is rarely used in actual development.

5. Conclusion

The author's innovation: Based on the interoperability of ARM architecture, the author takes the ARM-based embedded minimum system as the platform and studies its architecture from both hardware and software aspects. In terms of hardware, the author explains the interface between ARM processor and common external memory, and in terms of software, the author gives the typical startup architecture of the embedded minimum system and its selection criteria.


Keywords:ARM  S3C44B0  SDRAM Reference address:Research on Embedded Minimum System Based on ARM

Previous article:Research on Embedded Network Monitoring System
Next article:Design of sensor network gateway system based on Linux

Recommended ReadingLatest update time:2024-11-16 11:48

HiSilicon and Arm are still cooperating: Kirin 810 is released, and Masayoshi Son speaks out for the first time the next day
On June 22, in a public speech held in Taipei, China, SoftBank Group Chairman Masayoshi Son revealed that he did not order Arm to stop supplying Huawei after the US ban on Huawei. "There are many misunderstandings in the outside world, especially media reports," Son said tactfully. Son said Arm has not actually end
[Mobile phone portable]
HiSilicon and Arm are still cooperating: Kirin 810 is released, and Masayoshi Son speaks out for the first time the next day
Qemu builds ARM vexpress development environment (Part 2) ---- Start the Linux kernel through u-boot
In the above article "Building ARM vexpress development environment with Qemu (I)", we have briefly described how to directly start the Linux kernel through Qemu simulation and mount the root file system on the SD card. This method is to directly start the kernel, which is somewhat different from the actual ARM board
[Microcontroller]
Bootloader code for ARM core
1. Bootloader       It is the boot program of the ARM system, written in assembly language, to complete the initialization operation of the system. It is a program that must be run first after the system is powered on and reset, before the operating system or user application runs. Function: 1. Initialize
[Microcontroller]
Bootloader code for ARM core
ARM H-JTAG Server Programming Process
ARM program download method (1) Detection and debugging objectives: Connect the board to the emulator and power it on, open H-JTAG Server, click   the button in the toolbar to detect the debugging target, and if the target board is detected, the target chip model will be displayed (this is the chip we are currently
[Microcontroller]
ARM H-JTAG Server Programming Process
Teledyne e2v Launches Arm®-Based LX2160 Processor for High Reliability Aerospace and Defense Application Screening
Teledyne e2v certifies military-grade version of NXP LX2160 16-core Arm® Cortex® A72 processor for reliable operation from -55°C to +125°C Grenoble, July 16, 2024 – Teledyne e2v has announced that it has certified and released a screened version of the LX2160 for operation between -55°C and
[Embedded]
Teledyne e2v Launches Arm®-Based LX2160 Processor for High Reliability Aerospace and Defense Application Screening
ARM11 - Turn on the LED
First you need the startup.s file provided by Samsung to initialize and jump into the main() function Software used: ADS1.2 Debugging with JLINK //Use the header file, //The following header file contains the definition of 6410 registers #include "s3c6410_addr.h" //#include "utils.h" //Used to use Uart_Pri
[Microcontroller]
Arm, NXP and other companies cooperate to develop uCPE
Arm, NXP, Telco Systems and Vodafone have collaborated on a proof of concept for a uCPE that supports multiple enterprise services such as SD-WAN, routing and firewall, combining a CPE with the ability to scale services up and down. Typically, service providers want to simplify on-site deployment by replacing dedica
[Network Communication]
Arm GIC Introduction 4
GIC is an important component in the ARM system. After understanding the composition and function of GIC, we can understand the general process of IRQ, from the arrival of hardware IRQ to the end of IRQ. The IRQ we actually handle in KERNEL or in the device driver is actually in the software sense. So how are the ha
[Microcontroller]
Arm GIC Introduction 4
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号