Arm Community
Site
Search
User
Site
Search
User
Arm Developer
Documentation
Learning Paths
On-Demand Videos
Groups
Arm Ambassadors
Education Hub
Open Source Software and Platforms
Research Collaboration and Enablement
Forums
AI forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Automotive forum
Compilers and Libraries forum
Embedded and Microcontrollers forum
High Performance Computing (HPC) forum
Internet of Things (IoT) forum
Keil forum
Laptops and Desktops forum
Mobile, Graphics, and Gaming forum
Morello forum
Operating Systems forum
Servers and Cloud Computing forum
SoC Design and Simulation forum
SystemReady Forum
Blogs
AI blog
Announcements
Architectures and Processors blog
Automotive blog
Embedded and Microcontrollers blog
Internet of Things (IoT) blog
Laptops and Desktops blog
Mobile, Graphics, and Gaming blog
Operating Systems blog
Servers and Cloud Computing blog
SoC Design and Simulation blog
Tools, Software and IDEs blog
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Compilers and Libraries forum
MDK ARM Keil Compiler Flash Memory Setting
Jump...
Cancel
State
Accepted Answer
Locked
Locked
Replies
9 replies
Subscribers
20 subscribers
Views
7067 views
Users
0 members are here
STM32 L0
Keil MDK
Cortex-M0
Cortex-M0+
Arm Compiler 5
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
MDK ARM Keil Compiler Flash Memory Setting
Park Lemon
over 4 years ago
Hello guys,
I am migrating from STM32L051C8 (flash 64kByte) to STM32L073VB (flash128kByte) and I am using MDK arm Keil Microvision Compiler.
In MDK arm keil Microvision compiler, I have set the device to STM32L073VB and in target it change to the correct size and now the compiler know the size of flash is 128kByte.
But why I still get warning message at Build Output (after compile the code), it ask me to reduce the code size:
STM32L053R8_NUCLEO\STM32L053R8_NUCLEO.sct(19): warning: L6312W: Empty Execution region description for region ER_IROM1
Program Size: Code=35568 RO-data=18776 RW-data=516 ZI-data=5684
My code size in MAP file as shown below:
Total RO Size (Code + RO Data) 54344 (53.07kB)
Total RW Size (RW Data + ZI Data) 6200 (6.05kB)
Total ROM Size (Code + RO Data + RW Data) 54452 (53.18kB)
The current code size is just about 53kB, and my current device has flash about 128kB, but why compiler ask me to reduce the code size?
In the attachment, I show I have set my device to STM32L073VB that have flash memory 128kByte.
Any suggestion what I should do? Is there anything that I miss to set in order to enable the compiler to know the current MCU flash memory is 128kByte?
Top replies
Ronan Synnott
over 4 years ago
in reply to
Park Lemon
+1
verified
This looks to be a very special scatter file from your vendor, more complex than can be defined via the MDK options pane. Please keep using the specified scatter file... . I see that the ER_IROM1 has all...
Park Lemon
over 4 years ago
in reply to
Ronan Synnott
+1
verified
Hi sir, I am agree with your answer and I am going to understand the problem clearly. Just want to make my self clear so that I would not misunderstanding your answer. In Linker Tab, if I tick the...
Park Lemon
over 4 years ago
in reply to
Ronan Synnott
+1
verified
Hi sir, I am agree with your answer and I am going to understand the problem clearly. Just want to make my self clear so that I would not misunderstanding your answer. I decide to use the memory...
Parents
0
Ronan Synnott
over 4 years ago
in reply to
Park Lemon
Yes, that looks correct to me.
Cancel
Vote up
0
Vote down
Cancel
Reply
0
Ronan Synnott
over 4 years ago
in reply to
Park Lemon
Yes, that looks correct to me.
Cancel
Vote up
0
Vote down
Cancel
Children
No data