stvd+stm8s:#error clnk stm8s_sx1276.lkf:1 segment .text size overflow (3929)

Publisher:pengbinyyyLatest update time:2021-10-21 Source: eefocusKeywords:stvd  stm8s  error Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

STVD compiles the stm8s project and reports the following error:

Running Linker

clnk -l"C:Program Files (x86)COSMICCXSTM8Lib"  -o Debugstm8s_sx1276.sm8 -mDebugstm8s_sx1276.map Debugstm8s_sx1276.lkf
#error clnk Debugstm8s_sx1276.lkf:1 segment .text size overflow (3929)
#error clnk Debugstm8s_sx1276.lkf:1 segment .ubsct size overflow (313)
 The command: "clnk -l"C:Program Files (x86)COSMICCXSTM8Lib"  -o Debugstm8s_sx1276.sm8 -mDebugstm8s_sx1276.map Debugstm8s_sx1276.lkf " has failed, the returned value is: 1

exit code=1.


Solution: In "project->settings", select the project in the tree list under "Settings", click the "C Compiler" tab on the right, there is a "Category" drop-down list in C Compiler, select "Optimizations" in this drop-down list; select "Customize" in the drop-down list of "Optimizations", check the two items "Disable for Debugging (-no)" and "SplitFunction in Separate Sections (+split)".


SplitFunction in Separate Sections (+split): As the name implies, different functions are compiled separately without merging optimization.

In this way, unused functions will not be linked in at the final link. In the project, libraries are used and there are a large number of unused functions.


Keywords:stvd  stm8s  error Reference address:stvd+stm8s:#error clnk stm8s_sx1276.lkf:1 segment .text size overflow (3929)

Previous article:stvd+stm8s: ERROR:before starting debug session, please, select a target
Next article:stvd+stm8s: #error clnk stm8s_sx1276.lkf:1 segment .ubsct size overflow (313)

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号