Embedded ARM learning knowledge

Publisher:WanderlustGlowLatest update time:2019-10-22 Source: 51heiKeywords:Embedded Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

    1. Software


    This is probably the biggest difference. The operating system was introduced. Why was the operating system introduced? What are the benefits?

    1) Convenience. This is mainly reflected in the later development, that is, developing applications directly on the operating system. Unlike a single-chip microcomputer, everything needs to be rewritten. The early operating system transplantation work still needs to be done by professionals.


    2) Security. This is a feature of LINUX. The memory management of the LINUX kernel and user space is separated, so the system will not crash due to a single program error of the user. This has never been seen in the software development of single-chip microcomputers.


    3) Efficiency. The introduction of process management and scheduling system makes the system run more efficiently. In traditional single-chip microcomputer development, most of them are based on interrupt foreground and background technology, which has limitations in the management of multiple tasks.


    2. Hardware

    The current 8-bit microcontroller technology hardware is developing very fast, and many very powerful microcontrollers have appeared. However, there is still some gap compared with 32arm.


    Most ARM chips integrate SDRAM, LCD and other controllers into the chip. In 8-bit machines, most of them need to be expanded externally.

    In general, a MCU is a microcontroller, and ARM is obviously a microprocessor.


    After the introduction of embedded operating system, many functions that single-chip system cannot complete can be realized. For example: embedded web server, Java virtual machine, etc. In other words, there are many free resources to use, and the above two services are examples. If you develop these functions on a single-chip computer, you can imagine the difficulty.


    How do beginners choose ARM development hardware?


    1. If you have experience in hardware and single-chip microcomputers, it is recommended that you make a minimum system board yourself: If you have never done ARM development, it is recommended that you do not be greedy for perfection at the beginning, and make all the applications well, because the startup method of ARM is different from that of DSP or single-chip microcomputers, and you often encounter various problems. Therefore, it is recommended to first lay out a small system board with only Flash, SRAM or SDRAM, CPU, JTAG, and reset signals, leaving an expansion interface. If the minimum system can run normally, your task is half completed. Fortunately, the peripheral interfaces of ARM are basically standard interfaces. If you have experience in wiring these hardware, it is a very easy thing for you.


    2. Write the startup code. According to the hardware address, write a small code that can be started, including the following parts:

    Initialize the port, shield the interrupt, copy the program to SRAM; complete the code remapping; configure the interrupt handle and connect it to the C language entry. You may see that the bootloader has a lot of things in some sample programs given to you, but don't be bothered by these complicated programs, because you are not making a development board, your task is to make a small program to make your application run.


    3. If you are working on hardware, each manufacturer basically has a DEMO board schematic for the chip. Digest the schematic first. This way, when you design in the future, you will have a clear idea of ​​how to allocate resources. You must digest the device's DATSHEET well.


    4. Carefully study the information of the chip you are using. Although ARM is compatible in terms of the kernel, each chip has its own characteristics, and these issues must be considered when writing programs. Especially for girls, don't be dependent here. You always want to modify other people's sample programs, but the more you modify them, the more messy they become.


    5. Read more operating system programs. There are many open source programs for ARM applications. If you want to improve yourself, you should read more programs from others. Linux, UC/OS-II, etc. are all very good source codes.


    6. If you are doing software, it is best to have some understanding of the operating system mechanism. Of course, this is a piece of cake for software engineers. But if you are a hardware engineer, it will be a bit difficult.

    Q: Is it better to make a minimum system board with 2 layers or 4 layers?

    Answer: Only AT91 can use two-layer boards, and the others can use at least 4 layers. If the ground and power supply of 44b0 are well processed, two-layer boards can also be used.


Keywords:Embedded Reference address:Embedded ARM learning knowledge

Previous article:STM32 learning exploration: the realization of running lights
Next article:ARM Some Summary

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号