Although STM8 has complete functions, insufficient space is often a problem. Either .text overflow or .bss overflow, which is a headache. Here are some optimization solutions to make full use of space:
1. Under Project settings, C Compiler, Optimizations select Customize
The key is to select Split Functions.
This means that you only compile the functions you use, otherwise the compiler will stupidly compile all the functions in the C file you use, and of course there will not be enough space!
2. Go to Linker and select Input in Category.
Then see which one is not enough and set the value larger.
For example, my project shows .bss overflow (too many variables are defined), so I change the RAM from 0x1FF to 0x250.
Previous article:How to write STVD interrupt function
Next article:MCU system time
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Why software-defined vehicles transform cars from tools into living spaces
- How Lucid is overtaking Tesla with smaller motors
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Three steps to govern hybrid multicloud environments
- Three steps to govern hybrid multicloud environments
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Xunwei i.MX6ULL Terminator Thread Basics Thread Termination and Recycling
- LED matrix display for dot pixel art
- Driver and app
- Overcurrent protection circuit with self-locking
- LCD5110 driver for MSP430f5529
- TI DSP C6657 Learning - Compiling static library .lib
- tree Command
- What are the categories of edge computing devices?
- How to make a simple calculator using STM8L151K4
- A question about transformers