Introduction
Embedded systems are application-centric, computer-based systems with tailorable software and hardware to meet the strict requirements of application systems for functions, reliability, cost, volume, and power consumption. Among them, the design of remote configuration modules based on embedded Linux has attracted more and more attention. Through the design of remote configuration modules based on embedded Linux, remote experts and related technicians can monitor the operating status of devices connected to the server from any node on the Internet and perform operation modifications. The
main function of the system is to enable remote experts and related technicians to monitor the operating status of multiple devices through the client side of the system in different locations through computers. The server side of the system on the device side not only undertakes some tasks of real-time detection of system status, but also needs to save these recorded information and process the requests issued by the client software accordingly. The system has expanded the network card module, input and output signal interface and other modules in hardware to meet the needs of remote control.
1 System hardware design
This system uses Samsung's S3C44BOX ARM7TDMI core as the microprocessor chip. The system hardware framework structure diagram is shown in Figure 1, and its circuit schematic diagram is shown in Figure 2.
1.1 Storage Module Design
The system's FLASH uses HY29LV160, with a capacity of 2M bytes, which serves as the program memory of S3C44BOX. It stores boot code, uclinux kernel, Ethernet MAC address, and application programs. The single-chip storage capacity of HY29LV160 is 16M bits (2M bytes), the operating voltage is 2.7V~3.6V, and it uses 48-pin TSOP package or 48-pin FBGA package. It has a 16-bit data width and can work in 8-bit (byte mode) or 16-bit (word mode) data width. In the design process of this system, considering that the maximum capacity of the uclinux operating system with application programs will not exceed 1_7 MB, the FLASH memory with a size of 2MB can meet the system requirements. The DRAM uses HY57V641620, which is used to set the program stack and store various variables. The storage capacity of HY57V641620 is 4 groups x 16 M bits (8 M bytes), and the operating voltage is 3.3 V. According to the system requirements, a 16-bit or 32-bit SDRAM memory system can be constructed. However, in order to give full play to the data processing capability of the 32-bit CPU, the system uses a 32-bit SDRAM memory system with a total of 16 MB of SDRAM space, which can meet the operating requirements of embedded operating systems and various relatively complex algorithms.
1.2 Network interface module design
The network interface chip of the system is RTL8019AS. It is a 10 M Ethernet chip that can provide Ethernet access for the system. The data bus width of RTL8019AS is 16 bits. Therefore, the IOCS16B pin is pulled up in the design. RTL8019AS integrates two RAMs. One is 16 kB, with an address of 0x4000-7FFF; the other is 32 bytes, with an address of 0x0000-0x001F. 16k RAM is used as a buffer for sending and receiving data. Generally, 0x4000-0x46FF is used as a sending buffer, and 0x4700-0x7FFF is used as a receiving buffer. The interrupt output INTO of RTL8019 is connected to the EINTO terminal of S3C44BOX. In this way, the external interrupt O of the processor can be used to report the current operation of CPURTL8019AS, such as sending and receiving data, error exceptions, etc. The system can query the value of the internal register ISR of RTL8019 to obtain the operating status of the system for reading. [page]
2 Construction of system software platform
After modifying the standard Linux kernel, uclinux has formed a highly optimized and compact embedded Linux. Although it is small in size, uclinux still retains most of the advantages of Linux: stability, good portability, excellent network functions, complete support for various file systems, and standard and rich APIs, which are suitable for the establishment of remote configuration modules. Therefore, the remote configuration module is based on uclinux to establish the system software platform.
The system uses the GNU suite arm-elf tool chain: arm-elf-tools-20030314. sh to establish a cross environment for compiling uclinux. Copy arm-elf-tools-20030314. sh to the root directory and run the installation:
sh arm-elf-tools-20030314. sh to compile and port uclinux
.
After the cross compilation is successful, the images directory is generated under the uClinux-dist/directory, which contains 3 binary files: image. ram, image. rom and romfs. img.
3 System software design
The system software is the core of the remote configuration module. First, the bootloader process is written to optimize the execution of the system on the development board, and then the application and device driver development are implemented. The application development is mainly based on the writing of the socket application. In the process of socket implementation, this system uses xml files to configure device driver parameters.
3.1 Bootloader design
The design of the bootloader is mainly to jump the system program execution to the execution location of the system kernel after the system is powered on and reset. For this main function, the kernel and other parts of the microprocessor must be initialized and other functions must be expanded. The bootloader mainly completes the following processes:
(1) Establish an interrupt vector table
(2) Initialize various processor modes
(3) Introduce special variables
(4) Initialize memory
(5) Code copy
After completing the system hardware initialization process, the CPU usage right is handed over
to the operating system, thus completing the ultimate purpose of the bootloader.
3.2 Device driver development
Linux operation of devices The Linux system accesses devices just like accessing files
. For example, to open a device, use the system call open()
Previous article:ARM virtual development based on Proteus
Next article:Design of computer embroidery machine control system based on ARM and FPGA
Recommended ReadingLatest update time:2024-11-17 00:17
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- 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
- Activate the new generation of video doorbell! Let your eyes and ears be close to you
- Ask about inductor winding
- Selection of power inductors and filter energy storage capacitors for DCDC buck and boost circuits
- "Goodbye 2019, Hello 2020" + Looking back at 2019 and looking forward to 2020
- MSP430F5529 ADC Reference Sampling Example
- [ST MEMS waterproof pressure sensor LPS27HHW review] + comparison and application between 2 drivers (and final report)
- The problem of mutual influence between the operational amplifier voltage follower circuit and the amplifier circuit in parallel
- Help: What is the problem with low output voltage of DCDC circuit?
- What does CGSN in AT+CGSN stand for? Where can I find the full name table corresponding to the AT command abbreviation?
- Implementation of HPI Boot Mode in TMS320C62x