当前位置:网站首页>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
边栏推荐
- C语言程序设计之函数的构造
- Using quartz under. Net core - calendar of [6] jobs and triggers
- Shortcut keys (multiline)
- Using quartz under. Net core -- preliminary understanding of [2] operations and triggers
- C listens for WMI events
- Use between nodejs modules
- Use of shell sed command
- Detailed explanation of C webpai route
- Generating access keys using JSON webtoken
- Freecodecamp ---- budget & category exercise
猜你喜欢
Deep understanding of control inversion and dependency injection
Go language, array, string, slice
On lambda powertools typescript
Document operation II (5000 word summary)
[difference between Oracle and MySQL]
MySQL installation
[logical fallacy in life] Scarecrow fallacy and inability to refute are not proof
RPC核心概念理解
ASP. Net core JWT certification
Simulation of infrared wireless communication based on 51 single chip microcomputer
随机推荐
tidb-server 的配置文件在哪里?
Summary of common websites
Oninput one function to control multiple oninputs (take the contents of this input box as parameters) [very practical, very practical]
[related to zhengheyuan cutting tools]
Handwritten event publish subscribe framework
自定义my_strcpy与库strcpy【模拟实现字符串相关函数】
Shell-sort命令的使用
Shell script -- shell programming specification and variables
Basic case of Baidu map
JS, entries(), keys(), values(), some(), object Assign() traversal array usage
MySQL modify master database
Using quartz under. Net core -- a simple trigger of [7] operation and trigger
Self use learning notes - connectingstring configuration
Perception of linear algebra 2
Milvus 2.0 质量保障系统详解
JSON deserialize anonymous array / object
Use of shell awk command
Webapi + form form upload file
XTask与Kotlin Coroutine的使用对比
Net standard