当前位置:网站首页>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
边栏推荐
- Perception of linear algebra 2
- SPC introduction
- stm32入门开发板选野火还是正点原子呢?
- Router object, route object, declarative navigation, programmed navigation
- MySQL installation
- Using quartz under. Net core - [1] quick start
- Lock lock
- New keyword learning and summary
- SiteServer CMS5. 0 Usage Summary
- [batch change MySQL table and corresponding codes of fields in the table]
猜你喜欢
![[WPF binding 3] listview basic binding and data template binding](/img/2e/fbdb4175297bb4964a8ccfd0b909ae.png)
[WPF binding 3] listview basic binding and data template binding

2. Electron's HelloWorld

C# Task. Delay and thread The difference between sleep
![[logical fallacy in life] Scarecrow fallacy and inability to refute are not proof](/img/71/14a17128dbe0f02edb4db3da479ef2.jpg)
[logical fallacy in life] Scarecrow fallacy and inability to refute are not proof

文件操作《二》(5000字总结篇)

Nacos + aspnetcore + Ocelot actual combat code

Use of todesk remote control software

Signalr can actively send data from the server to the client

【生活中的逻辑谬误】稻草人谬误和无力反驳不算证明

JS, entries(), keys(), values(), some(), object Assign() traversal array usage
随机推荐
JS failed to change all variables and changed to the return method. Finally, the problem was solved
Summary of common websites
Promise (II)
stm32入门开发板选野火还是正点原子呢?
线性代数感悟之1
ASP. Net core configuration options (Part 1)
How to use the input table one-way service to send (occupy less) picture files (body transmission)? FileReader built-in object involved
Conversion between hexadecimal numbers
C dapper basically uses addition, deletion, modification and query transactions, etc
1-3 components and modules
Shell-awk命令的使用
Use of Shell sort command
Use of five routing guards
JS, entries(), keys(), values(), some(), object Assign() traversal array usage
Grpc gateway based on Ocelot
ClickHouse-SQL 操作
Detailed explanation of Milvus 2.0 quality assurance system
Baidu Map 3D rotation and tilt angle adjustment
Collection of common SQL statements
Shell-sed命令的使用
https://blog.csdn.net/weixin_43982452/article/details/114134096