当前位置:网站首页>In embedded system, must the program code in flash be moved to ram to run?
In embedded system, must the program code in flash be moved to ram to run?
2022-04-23 17:23:00 【Endless MCU programming】
This problem , The core still depends on what chip scheme you use !
Embedded system involves a huge technology stack , It's not just what you understand ARM+Linux nothing more .
I work in 11 year , I only dare to say that I am familiar with one of the directions .
Embedded system , The core unit is the core of the whole system ” The brain ”, Similar to a computer cpu.
I loosely call it a processor , So as not to spray .
Different processors , The performance is different , In terms of performance, it can be divided into the following :
By different embedded processors , It also leads to different career directions , There are several mainstream :
1. MCU Engineer
2.Linux Drive development
3.Linux System Development Engineer
4.Linux Application Engineer
5. Android system development engineer
6.FPGA/DSP Development
Different processor types run programs differently , Can't generalize .
I compare the two mainstream :
1. Embedded microcontrollers (MCU)
That is, MCU , such as 8051、LPC2132、STM32 wait 、 Chip program storage areas are all on-chip nor flash.
Nor flash Can be directly like memory RAM Same addressing , So MCU can directly from the inside FLASH Run the program .
2. Embedded microprocessors MPU
Generally, it is what people say ARM+Linux.
But not all of them ARM All need to run Linux Of ,STM32 Also belong to ARM, But most of them are ” Bare metal programming ”, Run at most RTOS.
commonly ARM+Linux The program exists in the external memory , such as nand flash wait .
Before the program is executed , From external storage ( such as nand flash) Put the reading program in ram Run in ,cpu from ram It reads programs and data .
3. summary
Whether it needs to be transported to ram, It depends on what chip scheme you use .
You can simply understand it as , If you are developed by MCU , Is directly from the film nor flash Read program execution .
If it is ARM+Linux It needs to be transported to ram perform .
Single chip microcomputer is generally hundreds of kb The program project is already quite large , and ARM+Linux Just a few dozen MB, The program of this volume , Built in Nor flash Words , Whether it can be realized technically will not be mentioned for the time being , The cost is immeasurable .
Last egg time !!!
Recently, many little friends asked me for some MCU learning materials , Then I based on my ten years of experience , How many nights did you stay up , Carefully organize a 「 MCU introduction to advanced tutorial + tool kit 」, All free sharing to everyone !!!
in addition to , Then share with tears what I pressed at the bottom of the box 22 A hot open source project , Include source code + Schematic diagram +PCB+ documentation , Let you quickly advance into an expert !
It is said that there are small partners who have successfully entered BAT Big factory , So if you save it, you must study hard .
The tutorial package and detailed learning path can be seen at the beginning of my following article .
版权声明
本文为[Endless MCU programming]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231720072256.html
边栏推荐
- Manually implement call, apply and bind functions
- Model problems of stock in and stock out and inventory system
- tidb-server 的配置文件在哪里?
- The system cannot be started after AHCI is enabled
- Use of five routing guards
- 【WPF绑定3】 ListView基础绑定和数据模板绑定
- ASP. Net core configuration options (Part 1)
- Entity Framework core captures database changes
- 快时钟同步慢时钟域下的异步控制信号slow clk to fast clk
- [logical fallacy in life] Scarecrow fallacy and inability to refute are not proof
猜你喜欢
自定义my_strcpy与库strcpy【模拟实现字符串相关函数】
Using quartz under. Net core -- job attributes and exceptions of [4] jobs and triggers
groutine
Simulation of infrared wireless communication based on 51 single chip microcomputer
Using quartz under. Net core -- operation transfer parameters of [3] operation and trigger
Clickhouse table engine
2.Electron之HelloWorld
Further study of data visualization
. net type transfer
Advantages and disadvantages of several note taking software
随机推荐
Milvus 2.0 质量保障系统详解
.Net Core3. 1 use razorengine NETCORE production entity generator (MVC web version)
Grpc gateway based on Ocelot
【WPF绑定3】 ListView基础绑定和数据模板绑定
Header built-in object
Baidu Map Case - modify map style
Some problems encountered in recent programming 2021 / 9 / 8
MySQL installation
Use of todesk remote control software
1-3 nodejs installation list configuration and project environment
Understanding and small examples of unity3d object pool
[difference between Oracle and MySQL]
JS failed to change all variables and changed to the return method. Finally, the problem was solved
1-2 JSX syntax rules
Abnormal resolution of Xiaomi camera
El date picker limits the selection range from the current time to two months ago
ClickHouse-数据类型
Use of shell cut command
freeCodeCamp----shape_ Calculator exercise
For the space occupation of the software, please refer to the installation directory