Solution to insufficient space on STM8

Publisher:幸福之舞Latest update time:2020-09-08 Source: eefocusKeywords:STM8 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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

image

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!

image

2. Go to Linker and select Input in Category.

image

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.

image


Keywords:STM8 Reference address:Solution to insufficient space on STM8

Previous article:How to write STVD interrupt function
Next article:MCU system time

Latest Microcontroller Articles
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号