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.
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)
- Popular Resources
- Popular amplifiers
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
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Switching Power Supply Interest Group Task 05
- DC/DC power supply circuit (MP2562 chip) chip breakdown failure when powering on
- [Chuanglong TL570x-EVM] Establish startup service - print helloworld
- Review summary: National Technology low-power series, N32L43x is now available for testing
- Some information about mobile power supplies (power banks)
- 【CH579M-R1】+U disk read/write
- 77G millimeter wave antenna design
- Unboxing of Materials - STM32F767 & ESP32
- Prize Review: 50 Rapid IoT Kits from NXP to Proof of Concept in Minutes
- Download Keysight Technologies' e-book "X-Apps Treasure Map: Essential Measurement Apps for Signal Analyzers That Accelerate Tests" and receive a gift!