Several ARM debugging methods that embedded programmers need to know

Publisher:xrmilkLatest update time:2017-11-12 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  According to different functions, the development tools of ARM application software include compiler software, assembler software, linker software, debugger software, embedded real-time operating system, function library, evaluation board, JTAG emulator, online emulator, etc. At present, there are more than 40 companies in the world that provide the above products of different categories. The following is a detailed introduction by Fuzhou Zhuoyue Education. 
Using the integrated development environment to develop ARM-based application software, including editing, compiling, assembling, linking, etc., all can be completed on the PC, and debugging work needs to be completed with other modules or products. At present, the common debugging methods of ARM training classes are as follows:
  1. Instruction set simulator
  Some integrated development environments provide instruction set simulators, which can facilitate users to complete some simple debugging work on PCs. However, since the instruction set simulator is very different from the real hardware environment, even if the user uses the instruction set simulator to debug the program, it may not be able to run in the real hardware environment. The user must eventually complete the development of the entire application on the hardware platform.
  2. Resident monitoring software
  Resident monitoring software (Resident Monitors) is a program running on the target board. The debugging software in the integrated development environment interacts with the resident monitoring software through communication ports such as Ethernet ports, parallel ports, and serial ports. The debugging software issues commands to notify the resident monitoring software to control the execution of the program, read and write memory, read and write registers, set breakpoints, etc. Resident monitoring software is a relatively cheap and effective debugging method that does not require any other hardware debugging and simulation equipment. ARM's Angel is such software, and most embedded real-time operating systems also use such software for debugging. The difference is that in embedded real-time operating systems, resident monitoring software exists as a task of the operating system.
  3. JTAG emulator
  JTAG emulator, also known as JTAG debugger, is a device for debugging through the JTAG boundary scan port of the ARM chip. JTAG emulators are relatively cheap and easy to connect. They communicate with the ARM CPU core through the existing JTAG boundary scan port. They are completely non-insertional (i.e., do not use on-chip resources) debugging. They do not require target memory and do not occupy any ports of the target system, which are required by resident monitoring software. In addition, since the target program of JTAG debugging is executed on the target board, the simulation is closer to the target hardware. Therefore, many interface problems, such as high-frequency operation restrictions, AC and DC parameter mismatches, and wire length restrictions, are minimized.
  4. In-circuit emulators
  In-circuit emulators use emulation headers to completely replace the CPU on the target board, which can fully simulate the behavior of ARM chips and provide more in-depth debugging functions. However, in order to be able to simulate processors with clock speeds higher than 100MHz at full speed, such emulators usually have to adopt extremely complex designs and processes, so their prices are relatively expensive. In-circuit emulators are usually used in ARM hardware development and are rarely used in software development. Their high price is also a factor that makes in-circuit emulators difficult to popularize.

Reference address:Several ARM debugging methods that embedded programmers need to know

Previous article:ARM learning is easy to confuse: function pointer and pointer function
Next article:Mini2440 drives LED via GPIO

Recommended ReadingLatest update time:2024-11-23 10:30

ARM assembly instruction set 10 - exception generation instruction
1. SWI instruction The format of the SWI instruction is: SWI{condition} 24-bit immediate value The SWI instruction is used to generate a software interrupt so that the user program can call the operating system's system routine. The operating system provides the corresponding system services in the SWI exception h
[Microcontroller]
ARM coprocessor CP15
CP15 — the system control coprocessor. It provides specific registers to configure and control caches, MMU, protection system, and clock mode (used in bootloader clock initialization) through coprocessor instructions MCR and MRC. CP15 registers can only be accessed by MRC and MCR (Move to Coprocessor from ARM Register
[Microcontroller]
Design of automotive "black box" based on ARM
0 Introduction The car driving recorder, commonly known as the car black box, is an electronic device that can record the vehicle's driving speed, time, mileage and other status information. The driving recorder can record the relevant information of the vehicle operation and the driver's driving activities in
[Microcontroller]
Design of automotive
ARM-Linux s3c2440 UART Analysis (V)
From the above four introductory articles, we have already understood the relationship between serial port devices and serial port drivers at all levels. It is a top-down relationship, which can be seen from the hierarchical flow chart in the second article. As mentioned before, the serial port device is a platform dev
[Microcontroller]
Detailed explanation of ARM interrupt implementation in linux-2.6.26 kernel (2)
3. Interrupt handling process This section will take S3C2410 as an example to describe how the interrupt is executed step by step to our registered function in the linux-2.6.26 kernel, starting from the interrupt. 3.1 Interrupt vector table archarmkernelentry-armv.S __vectors_STart: swi SYS_ERROR0 b vector_u
[Microcontroller]
Mir MYC-JX8MMA7 new product released! High-performance board based on ARM+FPGA processing architecture
A masterpiece of ARM+FPGA architecture, Mir MYC-JX8MMA7 new product is released! Keywords: Mir Electronics, NXP i.MX 8M Mini, core board, ARM+FPGA, development board In recent years, industrial intelligent technology has developed rapidly, embedded application scenarios have become more
[Embedded]
Mir MYC-JX8MMA7 new product released! High-performance board based on ARM+FPGA processing architecture
ARM9 interrupt architecture
Purpose of the experiment: When a button on the TQ2440 development board is pressed, an interrupt is triggered and the LED light is turned on. Experimental source program: /********************************************************************************** *s3c24xx.h ***************************************************
[Microcontroller]
ARM9 interrupt architecture
Design and implementation of intelligent dialer based on ARM
1. Introduction For workers who have a large number of telephones and are busy with daily work, using mobile phones to search and store phone numbers is convenient, but it also has the disadvantages of inconvenient query and low work efficiency. In some remote areas such as mountainous areas, the call quality o
[Microcontroller]
Design and implementation of intelligent dialer based on ARM
Latest Microcontroller Articles
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号