STM8 learning summary 1: project establishment

Publisher:reaper2009Latest update time:2020-02-02 Source: eefocusKeywords:STM8 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

This article does not describe the installation of IAR for STM8 software, you can just search it on Baidu; this article mainly describes the project establishment.


1. Create a new project folder and name it A. A contains three folders: FWlib, Project, and USER.

(1) The FWlib folder mainly stores official library functions and header files, namely the "inc folder" and the "src folder". You can also directly use the downloaded "STM8S_StdPeriph_Driver folder";


(2) The Project folder is mainly used to store project files and .hex files generated by compilation;


(3) The USER folder mainly stores main.c, stm8s_conf.h, and user-written function files, namely .c and .h files;


2. Create a new Workspace and a new Project:


(1) File -> New Workspace


(2) Project -> Create New Project, save to project folder A;

(3) Right-click the project name -> Add -> Add File…/Group… (File means adding a single file, Group means adding a folder) to add related files to the project:


Before adding:

After adding:

3. Set the project Option, right-click the project name -> Options, and set as follows:


(1) General Options -> Device, set the corresponding STM8 microcontroller model;

(2) Add the compilation path: C/C++ Compiler -> Preprocessor, and set the path to a relative path, that is, the folder can be compiled anywhere;

Set relative path:

(3) Set to .hex file output;

At this point, all setup steps are completed and the new project is finished.

Keywords:STM8 Reference address:STM8 learning summary 1: project establishment

Previous article:Summary of problems in using STLINK to download programs to STM8S103
Next article:STM8S103 compilation error bad struct/union operand

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

SiRuiPu and IAR work together to build an embedded development ecosystem
IAR Embedded Workbench for Arm fully supports 3PEAK TPS32 mixed-signal microcontroller mainstream products Shanghai, China – January 18, 2024 – IAR, a global leader in embedded development software and services, and 3RuiPu today jointly announced that IAR’s flagship product IAR Embedded Workbench
[Embedded]
SiRuiPu and IAR work together to build an embedded development ecosystem
STM8 study notes (I) core and architecture
Introduction STM8S is a microcontroller based on an 8-bit framework structure. Its CPU core has 6 internal registers, through which data can be processed efficiently. The STM8S instruction set supports 80 basic 20 addressing modes, and the 6 internal registers of the CPU have addressable addresses. If you want to kno
[Microcontroller]
STM8 study notes (I) core and architecture
IAR+STM8_EXTI external IO interrupt
MCU: STM8S207SB IO port to be operated: PD7 uses falling edge to trigger interrupt Code: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 twenty one twenty two twenty three twenty four 25 26 27 28 29 30 31 32 33 34 35 36 #include iostm8s207sb.h   #define LED1_FLASH PD_ODR_ODR3 = !PD_ODR_ODR3 // LED1 on the d
[Microcontroller]
Error[Li005] occurs when compiling STM8 after creating a project in IAR
After creating a project in IAR for STM8L, because I am a novice, the following error occurs after compiling the project: Error : no definition for "GPIO_Init"   The reason is that the library files are not added completely, because only USART, I2C and other functions are used, and the rest of the library files are
[Microcontroller]
Solution to the error of burning the newly purchased stm8 using IAR
This problem may occur on some newly purchased minimum systems, manifested as IAR being unable to burn, and prompting to release the burning protection bit, etc. I am using STM8S103F3P Solution process: 1. Download ST Visual tools from the official website and install it  The website address is as follows  https:/
[Microcontroller]
A brief comparison between 89C51 and STM8
Introduction to the topic: Content: Compare "89C51" and "STM8"; Source: derived from actual use; Function: To support comparison and provide reference for subsequent development; PCB environment: Altium Designer; Date: 2018-03-06; =====================Dividing line======================== Detailed explan
[Microcontroller]
Frequently asked questions and answers about the STM8-based capacitive touch sensing button software library (TSSL)
What is the purpose of the touch sensing library? The software can make any 8-bit STM8 and 32-bit STM32 microcontroller into a capacitive touch button controller. The solution allows designers to design high-end "look and feel" human interfaces using general-purpose microcontrollers to replace electromechanical switch
[Microcontroller]
Analysis of the main functions of STM8 MCU interrupts
Internal interrupts: usually caused by hardware errors or errors during operation, which are generally unavoidable; External interrupt: It is an interrupt request issued by the processor's peripherals, such as timer interrupt, UART receive interrupt, and external interrupts can generally be shielded by the interrupt c
[Microcontroller]
Analysis of the main functions of STM8 MCU interrupts
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号