STM8 defines a large array error #error clnk Debug\demo.lkf

Publisher:中华古风Latest update time:2021-11-08 Source: eefocusKeywords:STM8 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Today, when I was programming STM8 again, I found that the compilation could not pass after defining a large array. After searching online, I finally got it compiled. This is for my own convenience. If there are any problems or shortcomings in my writing, please let me know.

1. Error example: 

 

2. Open the dialog box

 

3. Modify project settings -> C Compiler -> General -> Memory Models: Select Long Stack[+modsl];

4. Recompile through


Keywords:STM8 Reference address:STM8 defines a large array error #error clnk Debug\demo.lkf

Previous article:STM8 Cosmic error
Next article:Another perfect appearance of the Mengzhimo T series products

Recommended ReadingLatest update time:2024-11-23 04:46

Integrated Circuits - STM8 Microcontroller Notes
Integrated circuits are made of silicon, which is an electronic-grade high-purity silicon ingot obtained by purifying sand. After cutting, the wafer is obtained, and then it goes through many steps such as photolithography or flat panel printing, etching, ion implantation, metal deposition, metal layer construction,
[Microcontroller]
Integrated Circuits - STM8 Microcontroller Notes
STM8 Timer Counter 2
Hardware platform: stm8s103  Compilation environment: IAR for stm8 #include iostm8s103f3.h #include intrinsics.h // // Set the system clock to run at 16MHz using the internal oscillator. // void InitialiseSystemClock() {     CLK_ICKR = 0; // Reset internal clock register     CLK_ICKR_HSIEN = 1; // Enable HSI    
[Microcontroller]
The startup process of STM8 microcontroller
When I was in college, I studied STM8 microcontrollers for one semester. I put a lot of effort into it. I used a textbook from a teacher I admired very much, which was taught in assembly language. However, I admired it very much. Now I think about it, some basic things in this book are not very clear. For example, in
[Microcontroller]
GPIO Operation Based on STM8---STM8-Chapter 1
1. General Appeal Maybe the microcontroller seems to be a difficult thing to you, but as far as I know, the microcontroller is nothing more than controlling its GPIO port, so it can be seen that learning how to operate and control the GPIO port is a very important thing for using the microcontroller. In the MCU eq
[Microcontroller]
GPIO Operation Based on STM8---STM8-Chapter 1
STM8 74hc165 parallel port input to serial port input subroutine
software design /********************************************************************* Purpose: To build a 74hc165 operation library Target system: Based on STM8 microcontroller  Application software: Cosmic CxSTM8  *********************************************************************/ #include "stm8s207s8.h" #def
[Microcontroller]
【IAR EW STM8 1401】 Cracking method
1. Open the "Electronic School Toolbox" CD and refer to the video in the CD to install IAR. After the installation is complete, the following interface will pop up when you open the software. We will ignore it for now and proceed to the second step.   2. Copy the four files in the cracked folder to the stm8bin dire
[Microcontroller]
【IAR EW STM8 1401】 Cracking method
STM8 uses TIM1 to measure PWM wave
1 Basic principle of TIM1 measuring PWM waveform The basic idea of ​​measuring PWM as shown in the figure above is as follows: start counting at each rising edge, record the current value as the high level time when the falling edge is detected, and then record the current value as the period when a falling edge is
[Microcontroller]
STM8 uses TIM1 to measure PWM wave
STM8 HSI and HSE manually switch clock source
Experimental platform: Sixiu Electronics Studio "Xiangyun Little Prince" development version int main(void) {   PI_DDR_DDR0=1; //Configure PI0 port to output mode   PI_CR1_C10=1; //Configure PI0 port to push-pull output mode   PI_CR2_C20=0; //Configure PI0 port low speed output   led1=1; //PI0 output is high level,
[Microcontroller]
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号