当前位置:网站首页>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 .

MCU entry to advanced open learning path ( Tutorial attached + Tools )icon-default.png?t=M3K6https://blog.csdn.net/weixin_43982452/article/details/114134096

 

版权声明
本文为[Endless MCU programming]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231720072256.html