How to see the program occupying STM32 flash and SRAM from the Keil compilation result

Publisher:PositiveEnergyLatest update time:2018-10-10 Source: eefocusKeywords:keil  STM32  flash  SRAM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Program Size: Code=114956 RO-data=20528 RW-data=808 ZI-data=702360  

FromELF: creating hex file...

"..\OBJ\MALLOC.axf" - 0 Error(s), 0 Warning(s).

Build Time Elapsed:  00:00:05


From the compilation information above, we can see that the FLASH size occupied by our code is:
135484 bytes (114956 +20528), and the SRAM size used is: 703168 bytes (808 +702360).


Here we explain the meaning of several data in the compilation result:
Code: Indicates the size of the FLASH occupied by the program (FLASH).
RO-data: Read Only-data, indicates constants defined by the program, such as const type (FLASH).
RW-data: Read Write-data, indicates initialized global variables (SRAM)
ZI-data: Zero Init-data, indicates uninitialized global variables (SRAM)


With this you can know the size of the flash and sram you are currently using, so it is important to note that
the size is not the size of the .hex file, but the sum of the compiled Code and RO-data.

The above analysis will help you select external flash and external RAM.


Keywords:keil  STM32  flash  SRAM Reference address:How to see the program occupying STM32 flash and SRAM from the Keil compilation result

Previous article:STM32F1x series memory structure
Next article:Detailed understanding of STM32 bit-band operation

Recommended ReadingLatest update time:2024-11-16 11:46

STM32 Beginner's Notes 3 External Interrupts
For the third part of the study, I chose external interrupts, because I think that in addition to timing issues, interrupts are the most commonly used. Of course, there is a timer that I haven't learned yet, so I can only put it aside for later. Of course, I don't plan to spend too much time on GPIO, so I just read the
[Microcontroller]
STM32 Beginner's Notes 3 External Interrupts
stm32 rcc clock
In STM32, when using any peripheral, the corresponding clock must be turned on, so I started with the STM32 clock. RCC Clock There are 5 clock sources in STM32: ①. HSI is a high-speed internal clock, RC oscillator, with a frequency of 8MHz. ②. HSE is a high-speed external clock, which can be connected to a quartz/c
[Microcontroller]
Design and implementation of LED dot matrix screen based on STM32
In recent years, with the rapid development of the information industry, dot matrix LED display screens have been widely used in various advertising and information display systems such as the financial industry, postal and telecommunications industry, stadiums, and advertising industry, becoming an important means of
[Microcontroller]
Design and implementation of LED dot matrix screen based on STM32
How to make your own LPC17xx keil firmware library
Make your own LPC17xx firmware, mainly to solve the problem of LPC17xx utilization. Lpc makes its own keil firmware library I am used to the Keil environment and have just learned a little about STM32. I think the STM32 firmware library is very convenient to use. My seniors have talked too much and too much about LPC
[Microcontroller]
How to make your own LPC17xx keil firmware library
STM32 CAN bus experimental experience
(I) Basic introduction to industrial field bus CAN and introduction to STM32 CAN module First, read the documents about CAN in the manual, and read them carefully. STM32F10xxx Reference Manual Rev7V3.pdf http://www.mystm32.com/bbs/redirect.php?tid=255&goto=lastpost#lastpost The parts that need to be read carefully
[Microcontroller]
STM32 CAN bus experimental experience
STM32 USB learning notes 2
Host environment: Windows 7 SP1 Development environment: MDK5.14 Target board: STM32F103C8T6 Development library: STM32F1Cube library and STM32_USB_Device_Library The STM32Cube library provides some USB-related routines. In the Applications directory under its project directory, open the STM3210E_EVAL director
[Microcontroller]
STM32 USB learning notes 2
STM32 TIM1 F1 four-channel fully remapped PWM configuration
void TIM1_PWM_Init(u16 arr,u16 psc) {   GPIO_InitTypeDef GPIO_InitStructure; TIM_TimeBaseInitTypeDef  TIM_TimeBaseStructure; TIM_OCInitTypeDef  TIM_OCInitStructure;   RCC_APB2PeriphClockCmd(RCC_APB2Periph_TIM1, ENABLE);//    RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOE , ENABLE);   RCC_APB2PeriphClockCmd(RCC_APB2P
[Microcontroller]
A little discovery of stm32's window watchdog
Today I looked at the window watchdog of stm32 and suddenly found it very abnormal, so I did various experiments and came to the following conclusions. Since the conclusions are only experimental and there is no official conclusion, if someone has a theoretical basis, please let me know, thank you very much. 1. Once t
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号