当前位置:网站首页>How does STM32 know the usage of FLASH
How does STM32 know the usage of FLASH
2022-08-09 08:41:00 【Running a small rabbit】
1. Load Region LR_IROM1 (Base: 0x00000000, Size: 0x0002dec8, Max: 0x00080000, ABSOLUTE)
//Program ROM loading space size: 188104 = 183k
Execution Region ER_IROM1 (Exec base: 0x00000000, Load base: 0x00000000, Size: 0x0002de68, Max: 0x00080000, ABSOLUTE)
//Program ROM execution space size: 188008
The reason why the SIZE of the execution space is smaller than the load space is that some RW type variables (initial values of global variables) are copied to the RAM space when the program is running.But they all have the same max space.
2. Huada MCU is similar to STM32, FLASH is divided into 64 sectors, each sector is 8K, a total of 512K of space.The starting address is 0x00000000, and my program uses 183K, which is 23 sectors.There are also 41 free sectors. This part of the space can store the data during the running of the program, and it will not disappear after the power is turned off. I use it to access the modified value of the global variable.In this way, the modification parameters can be directly modified by the host computer, instead of downloading the program every time.
边栏推荐
- VMware virtual machine cannot be connected to the Internet after forced shutdown
- 交换机的工作原理
- Some of the topics in VNCTF2021 are reproduced
- Redis redis 】 【 the expiration of listening
- 鸿蒙开发实战一——手表篇
- 浅谈Flask_script
- 【愚公系列】2022年08月 Go教学课程 033-结构体方法重写、方法值、方法表达式
- test process
- leetcode 34. 在排序数组中查找元素的第一个和最后一个位置(二分经典题)
- leetcode 36. 有效的数独(模拟题)
猜你喜欢
随机推荐
交换机的工作原理
深度学习时代的视频理解综述
QT program generates independent exe program (pit-avoiding version)
OSI网络模型
I'm here to advertise
STM32 如何知道FLASH的使用情况
System transformation and subnetting
bs4之爬取诗词学习
mysql事务(详解)
web basic concepts
PoPW代币分配机制或将点燃下一个牛市
The embedded serial port interrupt can only receive one byte
数据库中的操作(语法)
【GNN】2022 G-Mixup: Graph Data Augmentation for Graph Classification
File Handling (IO)
Routing configuration forwarding and experiment
OpenHarmony轻智能产品开发直播笔记
VNCTF2021 部分题目复现
数制转换及子网划分
The working principle of switch