Compiling STM8 microcontroller with IAR

Publisher:lambda21Latest update time:2021-11-04 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Warning image:

From the warning prompt, we can see that a compilation option failed to execute, but we can still continue to execute the code

[It's like you ordered a rice bowl and told the waiter that you wanted it slightly spicy, but when it came, you found that it was not spicy. This does not affect your continued enjoyment of the rice bowl, and you can still eat your fill!

But for someone like me with obsessive compulsive disorder, it doesn’t taste good this way, so I still have to add some chili manually. 】


How can we make the food taste delicious?


first step:

Step 2:

Step 3: Recompile -> Download, you will find no warning!

That's my solution!
I hope you can solve it soon too.


Reference address:Compiling STM8 microcontroller with IAR

Previous article:Displaying variable voltage on an LED strip using the STM8 Nucleo-64 development board
Next article:Things you need to know about MCU STM8 programming of LoRa terminal

Recommended ReadingLatest update time:2024-11-16 16:02

STM8 analog power consumption control
Fast memory wake-up in STM8 stop mode By default, the FLASH is powered off when the microcontroller enters stop mode. At this time, the leakage current is negligible and the power consumption is very low. However, the wake-up time of the FLASH is long (several microseconds). If the user needs to wake up quickly from
[Microcontroller]
STM8 study notes---timer TIM2 function implementation
STM8's TIM2, TIM3, and TIM5 are 16-bit general-purpose registers, and their operation methods are the same. The main functions are as follows The relevant registers are as follows: If only the timing function is used, the registers needed are the automatic load register ARR, the pre-scaling register PSCR, the ev
[Microcontroller]
STM8 study notes---timer TIM2 function implementation
STM8 MCKIT1.0 BLDC sensorless control acquisition implementation analysis
The STM8 motor library written by ST can drive BLDC in a sensorless way. The STM8 chip has only one AD converter, and it is an 8-bit machine. In addition to collecting and comparing electric potential, it is also necessary to collect, calculate and process analog signals such as bus voltage, bus current, heat sink tem
[Microcontroller]
About iar for stm8: iar Fatal Error
Due to work needs, I installed iar for stm8. The company's god sent a program. However, after installation and completion, the compilation failed. The reason for failure is as the title. I looked up some posts on the Internet and found some key inspirations, but for those who have just come into contact with stm8 soft
[Microcontroller]
About iar for stm8: iar Fatal Error
stm8 pwm implementation core code
void TIM2_Config(void) {         CLK_PCKENR1 |= 0x20;//TIM2 CLK Enable!         asm("nop");         while(!(CLK_PCKENR1 & 0x01));         TIM2_CR1 = 0x00;           TIM2_PSCR = 0x00;//16/2^4           TIM2_ARRH = 0x00;         TIM2_ARRL = 0xFF;//           TIM2_CCR1H = 0x01;         TIM2_CCR1L = 0xf4;           TIM2_C
[Microcontroller]
STM8 about IWDG watchdog and HSI high-speed clock and reset pit
Preface: This is my first blog, and I am going crazy. I used STM8S003F3, and it took 5 days to solve the problem, but the ending is terrible! But because of this problem, I seem to have almost fully understood the use of stm8's clock, reset, watchdog, and iar. Advice: Don’t just believe the information you find on B
[Microcontroller]
STM8 about IWDG watchdog and HSI high-speed clock and reset pit
Solution to STM8 MCU PWM no waveform output
  When debugging the PWM function of the STM8 microcontroller, you often encounter a situation where after the PWM initialization settings are completed, the program is downloaded to the microcontroller, but there is no waveform output. Sometimes the code is downloaded from other debuggers, but there is no waveform ou
[Microcontroller]
Solution to STM8 MCU PWM no waveform output
【STM8】Serial port data is always stuck in read interrupt
▪ Phenomenon STM8 UART1 has enabled the read interrupt, and the initialization code is as follows: // Configure the serial port parameters as follows: baud rate 115200, 8 data bits, 1 stop bit, no parity check, disable synchronous transmission, allow receiving and sending UART1_Init((u32)115200, UART1_WORDLENGTH_8D,
[Microcontroller]
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号