In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the common problems and solutions in the process of big data embedded system development, the content is very detailed, interested friends can refer to, I hope it can be helpful to you.
1. How does Bootloader write to Flash?
Beginners generally encounter the problem of how to write a program to the processor. Different methods can be used for different processors. For example, Intel's Xscale processor can be written using the JFlash tool provided by Intel. For processors with JTAG debugging tool software, you can use the following idea: write a program that can write data located in a fixed address of SDRAM/SRAM to Flash. When burning and writing, first of all, download this piece of software to SDRAM, then download the data to be written into Flash to the buffer at the beginning of a fixed address of SDRAM/SRAM through the debugging software, and then start the program through the debugger to write the data to Flash. In addition, there are many special tools for writing Flash on the network, which developers can choose according to their own needs. (now I understand why the BF533 I am studying is the next flashProgramer.dxe first.)
two。 What is arm-elf-gcc?
Arm-elf-gcc is a cross-C language compiler. We compile the program on the PC platform, and the compiler runs the same processor as the generated code will run. However, when compiling an ARM program on a PC, the compiler runs a different processor from the generated code, which is called a cross-compiler. Where elf refers to the target file format generated by the compiler. (in fact, the single-chip microcomputer compiler we usually use, such as GCC-AVR, is already a cross-compiler, and I haven't figured out what a cross-compiler is until now.)
3. Which compilation path did you take?
System programs and drivers often contain a lot of compilation options, many of which are defined on the command line at compile time. If you want to know which program is compiled, you can use the following methods:
# ifdef PLAT_AAA
# error Code for Platform AAA
# else
# error Code NOT for Platform AAA
# endif
In this way, when compiling, you will know which path is being compiled. The # pragma message precompiled instruction can also be used for compilers that support # pragma message ("I am here").
4. How do I know that code is in that file?
In system programming, it is often necessary to search for strings in multiple files. Under the windows platform, you can use the multi-file string search tool provided by the platform. On the linux platform, you can use grep to search for strings. Grep's search function is very powerful, support regular expression search, proficient in the use of grep is very helpful to read the system and driver code.
5. Which file does the system start to run from?
For Windows CE systems, it is generally from an assembly file in the WINCE420\ PLATFORM\ YourPlatform\ KERNEL\ HAL directory. There are some differences between different versions of Linux systems. For example, arm processors are usually found in the head-armv.S of linux2.4.x\ arch\ arm\ kernel.
6. Where has the program been executed?
You can insert the following code into the program to implement
Printf ("I am here% s,% d\ n", _ _ FILE__, _ _ LINE__)
The code will type the file name and line number where the printf statement is located.
Recommended bibliography
Jean J.Labrosse MicroC/OS-II The Real-Time Kernel,Second Edition is the author's introduction to embedded real-time systems, and the Chinese version is available in China. This book clearly describes the concept of the real-time system, the working principle of the various components, especially the disclosure of the real-time system kernel source code, careful study will certainly benefit a lot. There is a small hint that for beginners, this book can start from the second chapter without looking at the first chapter.
Abraham Silberschatz, Peter Baer Galvin,Greg Gagne Operating System Concepts in the process of teaching, the author found that there are many students majoring in computer and electronic engineering who do not understand the basic concepts of the operating system, and few students have complete system programming experience. Operating System Concepts's book on the concept of the operating system can only be described in classics. For students who are interested in in-depth study of embedded systems, they should first lay a good foundation, and this book will become a must-read.
Andrew S. Tanenbaum Computer Networks mentioned that Andrew S. Tanenbaum students who study computers must know the book OPERATINGSYSTEMs:Design and Implementation. I sincerely admire professors like Tanenbaum. Network protocol stack is a pillar component of embedded system. For those of you who are willing to devote yourself to the study of deep network technology, this book will build a solid network foundation for you.
Karim Yaghmour Building Embedded Linux Systems this book introduces the composition, basic concepts and how to establish each part of the embedded linux system in detail. The whole book is short and short. It can be used not only as an introduction to embedded linux systems, but also as a guide for all parts of the development process.
Advanced RISC Machines Ltd (ARM) ARM7 TDMI Data Sheet Advanced RISC Machines Ltd (ARM) ARM920T Technical Reference Manual Learning embedded system how can I not understand the most widely used embedded processors? ARM7 TDMI's data sheet is a good thing to learn about the ARM programming model and instruction set. In the embedded system, MMU (memory Management Unit) is not only a very important part, but also a difficult part to understand and master. ARM920T Technical Reference Manual can help you explain this aspect.
The most commonly used language for Perter Van Der LinDen Expert C Programming embedded system-level programming is C. Many students think they are good at C Linguistics, so take a look at this book and find out the gap between yourself and Experts.
Embedded development and desktop development are not only different, but also have a very big relationship, and pay great attention to the actual operation ability. Desktop developers are usually unable to convert when they are exposed to embedded systems at the beginning, which is mainly reflected in their positioning. As the article says, who are you and what are you going to do? My knowledge of hardware is limited to the field of programming. I don't know anything about PCB design, but that doesn't mean you can't engage in embedded development if you don't understand hardware. In all aspects of the development and design of a system, it is most important to make your own contribution in the field that you are interested in and familiar with.
(1) hardware design: experience in hardware design and good understanding of all kinds of embedded devices are required.
(2) system porting: knowledge of compilation experience, operating system principles and underlying drivers are required.
(3) applications: desktop programming experience is required
On big data embedded system development process of common problems and solutions are shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.