当前位置:网站首页>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
边栏推荐
- Compare the performance of query based on the number of paging data that meet the query conditions
- ASP. Net core dependency injection service life cycle
- Detailed explanation of C webpai route
- AIOT产业技术全景结构-数字化架构设计(8)
- 线性代数感悟之2
- Solution of Navicat connecting Oracle library is not loaded
- Shell-cut命令的使用
- . net type transfer
- Promise (III)
- 1-4 configuration executable script of nodejs installation
猜你喜欢
Use of todesk remote control software
Compare the performance of query based on the number of paging data that meet the query conditions
ASP. NET CORE3. 1. Solution to login failure after identity registers users
ClickHouse-表引擎
Nacos + aspnetcore + Ocelot actual combat code
Document operation II (5000 word summary)
ASP. Net core JWT certification
1-4 configuration executable script of nodejs installation
01-初识sketch-sketch优势
How to change input into text
随机推荐
Shell - introduction, variables, and basic syntax
Solution architect's small bag - 5 types of architecture diagrams
Grpc gateway based on Ocelot
Bottom processing of stack memory in browser
Promise (IV)
2. Electron's HelloWorld
01-初识sketch-sketch优势
Manually implement simple promise and its basic functions
ASP. Net core dependency injection service life cycle
ClickHouse-数据类型
Indexes and views in MySQL
2.Electron之HelloWorld
Some problems encountered in recent programming 2021 / 9 / 8
AIOT产业技术全景结构-数字化架构设计(8)
Collect blog posts
Simulation of infrared wireless communication based on 51 single chip microcomputer
.Net Core3. 1 use razorengine NETCORE production entity generator (MVC web version)
Shell-awk命令的使用
Clickhouse table engine
VsCode-Go