STM8 IAR related notes

Publisher:泉地水无痕Latest update time:2015-12-14 Source: eefocusKeywords:STM8 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
   If the .h file is not in the program root directory, you need to specify the location, as shown below:

STM8 IAR related notes


In this way, the compiler can find the location of the .h file without error. As for the .c file, you can add it directly, as shown in the figure below

STM8 IAR related notes


 

 

Keywords:STM8 Reference address:STM8 IAR related notes

Previous article:STM8S study notes 4 (STM8 time1)
Next article:IAR STM8 serial printf output

Recommended ReadingLatest update time:2024-11-16 15:47

Use of STM8's timer wake-up unit
The "RTC periodic wakeup unit" of STM8L can configure different wakeup periods through the WUCKSEL bits of the RTC_CR1 register. There are three specific modes:   1.1, WUCKSEL = 0xxb for short wakeup periods   1.2 WUCKSEL = 10xb for medium wakeup periods   1.3 WUCKSEL = 11xb for long wakeup periods The frequency divis
[Microcontroller]
Use of STM8's timer wake-up unit
Partial explanation of #define definitions in IAR 430 header files
Today, I found several questions when reading the header file cc430x613x.h in RF_Example_Code_v1.0. First, let's look at the three #define examples in cc430x613x.h: #define DEFC(name, address) __no_init volatile unsigned char name @ address; #define DEFW(name, address) __no_init volatile unsigned short name @ addr
[Microcontroller]
About Homemade STM8 Bootloader
Due to the needs of my project, I need to make a bootloader for STM8L052R8 for remote program upgrade function. For safety reasons, I will not use the bootloader that comes with ST, but my own bootloader. The basic functions are as follows. First, the program runs on a V1.0 version with BOOT. When the program receiv
[Microcontroller]
STM8 MCU reads DHT11 temperature and humidity sensor
DHT11 is a temperature and humidity sensor that is also driven by a bus. Its usage is very similar to that of the ds18b20 temperature sensor. Supply voltage 3.3~5.5V DC Measuring range: humidity 5% ~ 95%RH, temperature -20℃ ~ +60℃ Measurement accuracy humidity ±5%RH, temperature ±2℃ Resolution humidity 1%RH, tempera
[Microcontroller]
STM8 MCU reads DHT11 temperature and humidity sensor
STM8 Getting Started Learning and Experiments (I) GPIO and UART
Introduction: This chapter will describe how to configure GPIO and how to configure UART STM8 project template: http://download.csdn.net/detail/u012388993/9904051 The basic system configuration initialization function that will be used in these two experiments   CLK_PeripheralClockConfig(CLK_PERIPHERAL_UART1, EN
[Microcontroller]
STM8 Getting Started Learning and Experiments (I) GPIO and UART
STM8 microcontroller triggers ADC synchronous sampling via PWM
  The PWM function and ADC sampling function are the most commonly used functions in the development of digital switching power supplies. The sampling time point is very important when sampling ADC. The sample must be taken when the PWM output is high, so that the sampled data is the most accurate. In the STM8 microco
[Microcontroller]
STM8 microcontroller triggers ADC synchronous sampling via PWM
vscode uses IAR_STM8 tool chain to compile and debug STM8 projects
This article describes how to use the IAR_STM8 tool chain on EIDE to complete project compilation and use STM8-Debug to complete debugging This article takes STM8S105K4T6 as an example 1. Create an 8/16 Bit MCU project using EIDE 2. Create a folder in the project directory and copy the STM8S standard peripheral l
[Microcontroller]
vscode uses IAR_STM8 tool chain to compile and debug STM8 projects
IAR for stm8 go to define solution can not jump
When I use IAR for stm8 go to define, I cannot jump, and the compiler does not give any prompts. I searched Baidu for many solutions but none of them worked. Finally, I found that I had to compile it once to make it work. Note: Don't compile directly, but make some changes to the code first and then compile it to mak
[Microcontroller]
IAR for stm8 go to define solution can not jump
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号